From 9d14a5f672683f0fdf59aec6b30962c218aac27f Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Mon, 2 Dec 2024 19:08:59 +0000 Subject: [PATCH] Update Rakefile Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- Rakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 92e9754..c443c49 100644 --- a/Rakefile +++ b/Rakefile @@ -46,7 +46,9 @@ task :update do } end - f = File.open("data/airports.json", "w") + File.open("data/airports.json", "w") do |f| + f.write(JSON.generate(cleaned_data)) + end f.write(JSON.generate(cleaned_data)) end