Skip to content

Commit

Permalink
Fix Hound mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
nukosuke committed Dec 3, 2018
1 parent 1e2b464 commit 7d23895
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions script/create_locale_types.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
# create_locale_types.rb
# Create locale_types.go from public locale list from API
#
Expand All @@ -13,10 +14,10 @@
res = Net::HTTP.start(uri.host, uri.port, use_ssl: true) { |http| http.request(req) }

if res.is_a? Net::HTTPSuccess
data = JSON.parse(res.body)
puts ERB.new(DATA.read).result(binding)
data = JSON.parse(res.body)
puts ERB.new(DATA.read).result(binding)
else
abort "failed to fetch from locale API: #{res.body.inspect}"
abort "failed to fetch from locale API: #{res.body.inspect}"
end

__END__
Expand Down

0 comments on commit 7d23895

Please sign in to comment.