Skip to content

Commit

Permalink
Replace File.exists? with File.exist?
Browse files Browse the repository at this point in the history
`File.exists?` was removed in Ruby 3.2
  • Loading branch information
dannymidnight committed Nov 20, 2023
1 parent 16eca29 commit 52d0a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate_graphql_api_content.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
schema_type_data["kind"].to_s.downcase
end

Dir.mkdir("#{schemas_dir}/#{sub_dir}") unless File.exists?("#{schemas_dir}/#{sub_dir}")
Dir.mkdir("#{schemas_dir}/#{sub_dir}") unless File.exist?("#{schemas_dir}/#{sub_dir}")
File.write("#{schemas_dir}/#{sub_dir}/#{name.downcase}.md", render_page(schema_type_data, sub_dir.capitalize.pluralize))
end
end
Expand Down

0 comments on commit 52d0a09

Please sign in to comment.