Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jacklynhma committed Dec 3, 2024
1 parent 92d36f8 commit 7308cc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http_url_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ def validate_each(record, attribute, value)
uri = URI::DEFAULT_PARSER.parse(value)
record.errors.add attribute, "is not a valid URL" unless [URI::HTTP, URI::HTTPS].member?(uri.class)
rescue URI::InvalidURIError
record.errors.add attribute, "is not a valid URL"
record.errors.add attribute, "is not a valid URL"
end
end

0 comments on commit 7308cc4

Please sign in to comment.