Skip to content

Commit

Permalink
Use Pathname#write
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Jan 31, 2024
1 parent f4cbd29 commit f61c491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/manageiq/api/open_api/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def initialize

def generate!
openapi_spec["components"]["schemas"] = build_schemas
File.write(openapi_path, "#{JSON.pretty_generate(openapi_spec)}\n")
openapi_path.write("#{JSON.pretty_generate(openapi_spec)}\n")
end

private
Expand Down

0 comments on commit f61c491

Please sign in to comment.