Pay heed to rubocop
This commit is contained in:
parent
97e70e93bb
commit
f234bf3a46
2 changed files with 7 additions and 20 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue