Fixed a small thing caught by Codacy which was an unused local variable.