Minor refactoring to kill various Rubocop warnings

This commit is contained in:
Maruno17
2021-12-17 20:29:47 +00:00
parent b5ee1b211d
commit 5dc64f1709
46 changed files with 145 additions and 151 deletions

View File

@@ -1707,7 +1707,7 @@ module Compiler
GameData::MapMetadata::DATA.clear
map_infos = pbLoadMapInfos
map_names = []
map_infos.keys.each { |id| map_names[id] = map_infos[id].name }
map_infos.each_key { |id| map_names[id] = map_infos[id].name }
# Read from PBS file
File.open(path, "rb") { |f|
FileLineData.file = path # For error reporting