Skip to content

Commit

Permalink
use ENV.fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
msimonborg committed Aug 23, 2017
1 parent c0bbf59 commit 13aedb7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/tasks/qr_codes.rake
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,7 @@ namespace :pyr do
end

def lookup_qr_code_dir
if ENV['dir']
ENV['dir']
else
ENV.fetch('dir') do
date = DateTime.now
year = date.strftime('%Y')
month = date.strftime('%m')
Expand Down

0 comments on commit 13aedb7

Please sign in to comment.