We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddf4323 commit 5a4c5caCopy full SHA for 5a4c5ca
get_data_from_japan.rb
@@ -9,13 +9,8 @@
9
EVENTS_DATA = JSON.parse Net::HTTP.get(URI.parse "#{BASE_URL}/events.json"), symbolize_names: true
10
EVENTS_JSON = JSON.pretty_generate EVENTS_DATA.sort_by{|dojo| dojo[:id]}
11
12
-File.open("dojos_japan.json", "w") do |file|
13
- file.write(DOJOS_JSON)
14
-end
15
-
16
-File.open("events_japan.json", "w") do |file|
17
- file.write(EVENTS_JSON)
18
+File.open("dojos_japan.json", "w") { |file| file.write(DOJOS_JSON) }
+File.open("events_japan.json", "w") { |file| file.write(EVENTS_JSON) }
19
20
# Show next step for developers
21
puts DOJOS_JSON
0 commit comments