From 7308cc4a8bc49afe11fcbdbe569da94750551ba7 Mon Sep 17 00:00:00 2001 From: Jacklyn Ma <29336370+jacklynhma@users.noreply.github.com> Date: Tue, 3 Dec 2024 13:45:34 -0500 Subject: [PATCH] Fix indentation --- lib/http_url_validator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http_url_validator.rb b/lib/http_url_validator.rb index c122927a168..258772a9dee 100644 --- a/lib/http_url_validator.rb +++ b/lib/http_url_validator.rb @@ -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