Rubocop'd!

This commit is contained in:
Dan Buch 2020-01-09 20:09:46 -05:00
parent 19a161a79b
commit fe2a7feba4
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# This configuration was generated by # This configuration was generated by
# `rubocop --auto-gen-config` # `rubocop --auto-gen-config`
# on 2020-01-08 20:39:50 -0500 using RuboCop version 0.78.0. # on 2020-01-09 20:09:37 -0500 using RuboCop version 0.78.0.
# The point is for the user to remove these configuration records # The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base. # one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new # Note that changes in the inspected code, or installation of new

View File

@ -21,7 +21,7 @@ class CPIFetcher
def cpi_csv def cpi_csv
values = cpi values = cpi
CSV.generate do |csv| CSV.generate do |csv|
csv << ['year', 'value'] csv << %w[year value]
csv << [start_year, values.fetch(:start)] csv << [start_year, values.fetch(:start)]
csv << [end_year, values.fetch(:latest)] csv << [end_year, values.fetch(:latest)]
end end