Resolved many Rubocop warnings

This commit is contained in:
Maruno17
2020-09-06 17:31:12 +01:00
parent 6c4670eaa3
commit 681a8331ab
137 changed files with 921 additions and 1200 deletions

View File

@@ -481,18 +481,16 @@ PokemonPCList.registerPC(HallOfFamePC.new)
class PokemonGlobalMetadata
attr_accessor :hallOfFame
attr_writer :hallOfFame
# Number necessary if hallOfFame array reach in its size limit
attr_accessor :hallOfFameLastNumber
attr_writer :hallOfFameLastNumber
def hallOfFame
@hallOfFame=[] if !@hallOfFame
return @hallOfFame
return @hallOfFame || []
end
def hallOfFameLastNumber
@hallOfFameLastNumber=0 if !@hallOfFameLastNumber
return @hallOfFameLastNumber
return @hallOfFameLastNumber || 0
end
end