Closed mettke closed 8 months ago
According to the Go Documentation the HasPrefix Function has its parameters swapped. This is how it is:
func isValidBranchID(s string) bool { return strings.HasPrefix("br-", s) }
And this is how it should be:
func isValidBranchID(s string) bool { return strings.HasPrefix(s, "br-") }
According to the Go Documentation the HasPrefix Function has its parameters swapped. This is how it is:
And this is how it should be: