Skip to content

Commit

Permalink
File.exists -> File.exist
Browse files Browse the repository at this point in the history
  • Loading branch information
chadlwilson authored Feb 16, 2024
1 parent 3f02771 commit d9f1322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helpers/gocd_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def twitter_card_image(image)
else
File.join(app.config[:source], asset_path(:images, path_to_image, :relative => false))
end
raise "Image does not exist or too large to use for Twitter summary: #{full_path_of_image}" unless (File.exists?(full_path_of_image) && (File.size(full_path_of_image) < (1024 * 1024 * 1024)))
raise "Image does not exist or too large to use for Twitter summary: #{full_path_of_image}" unless (File.exist?(full_path_of_image) && (File.size(full_path_of_image) < (1024 * 1024 * 1024)))
URI::join(config.base_url, asset_path(:images, path_to_image, :relative => false))
end

Expand Down

0 comments on commit d9f1322

Please sign in to comment.