Pay heed to rubocop

This commit is contained in:
Adam Hoyle 2021-10-17 23:34:26 +01:00
parent 97e70e93bb
commit f234bf3a46
2 changed files with 7 additions and 20 deletions

View file

@ -1,6 +1,5 @@
module OsmCommunityIndex
class LocalChapter
attr_reader :id, :name, :url
@localised_chapters = {}
@ -15,8 +14,6 @@ module OsmCommunityIndex
@localised_chapters[locale] ||= load_local_chapters(locale)
end
protected
def self.load_local_chapters(locale)
community_index = OsmCommunityIndex.community_index
localised_strings = OsmCommunityIndex.localised_strings(locale)
@ -33,7 +30,5 @@ module OsmCommunityIndex
end
local_chapters
end
end
end
end