Skip to content

Commit

Permalink
remove commentc
Browse files Browse the repository at this point in the history
  • Loading branch information
shani-asad committed May 19, 2024
1 parent 61e2003 commit a50f849
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/handler/patient_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a50f849

Please sign in to comment.