From a50f849cf82359ef4e415dd492a2c153103519dd Mon Sep 17 00:00:00 2001 From: shani Date: Sun, 19 May 2024 17:15:44 +0700 Subject: [PATCH] remove commentc --- src/handler/patient_handler.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/handler/patient_handler.go b/src/handler/patient_handler.go index b9c1e38..4b259ea 100644 --- a/src/handler/patient_handler.go +++ b/src/handler/patient_handler.go @@ -298,14 +298,6 @@ func validateGender(gender string) bool { return gender == "male" || gender == "female" } -// func isValidURL(str string) bool { -// u, err := url.Parse(str) -// if err != nil || u.Scheme == "" || (u.Scheme != "http" && u.Scheme != "https") { -// return false -// } -// return true -// } - func isValidURL(input string) bool { // Parse the URL to check for basic URL structure parsedURL, err := url.ParseRequestURI(input)