Skip to content

Commit

Permalink
Use idiomatic File#write instead of File#puts
Browse files Browse the repository at this point in the history
  • Loading branch information
timrogers committed Dec 2, 2024
1 parent 537c328 commit 2935b3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ task :update do
}
end

File.open("data/airports.json", "w").puts JSON.generate(cleaned_data)
f = File.open("data/airports.json", "w")
f.write(JSON.generate(cleaned_data))
end

task default: :spec

0 comments on commit 2935b3a

Please sign in to comment.