From: Tom Hughes Date: Wed, 4 Dec 2019 19:58:21 +0000 (+0000) Subject: Fix erblint warnings X-Git-Tag: live~2933 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/fc8189685e489090b20b8ea01e1710aff10285b3 Fix erblint warnings --- diff --git a/.erb-lint.yml b/.erb-lint.yml index 812a6f538..ca95fb0d7 100644 --- a/.erb-lint.yml +++ b/.erb-lint.yml @@ -10,7 +10,7 @@ linters: - .rubocop.yml Layout/InitialIndentation: Enabled: false - Layout/TrailingBlankLines: + Layout/TrailingEmptyLines: Enabled: false Layout/TrailingWhitespace: Enabled: false diff --git a/app/views/site/key.html.erb b/app/views/site/key.html.erb index abcf220e3..317266b1f 100644 --- a/app/views/site/key.html.erb +++ b/app/views/site/key.html.erb @@ -1,6 +1,6 @@
- <% YAML.load_file(Rails.root.join("config", "key.yml")).each do |name,data| %> + <% YAML.load_file(Rails.root.join("config/key.yml")).each do |name,data| %> <% data.each do |entry| %> " data-zoom-max="<%= entry["max_zoom"] %>">