Ruby: else without rescue is useless
It looks like the else block is not part of an if statement. Am I correct in assuming you want it to provide an alternative path when if @@counter > 0
is false? If so, get rid of the end
that's on the line above the else, e.g.:
if @@Counter > 0
# ... processing ...
else
# ... alternative processing ...
end
if condition
# …
else
# …
end
not
if condition
# …
end
else
# …
end