Skip to content

Commit

Permalink
Cosmetic change (shorten line)
Browse files Browse the repository at this point in the history
  • Loading branch information
jub0bs committed Apr 17, 2024
1 parent 034e69a commit aebaa1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ type wildcard struct {
}

func (w wildcard) match(s string) bool {
return len(s) >= len(w.prefix)+len(w.suffix) && strings.HasPrefix(s, w.prefix) && strings.HasSuffix(s, w.suffix)
return len(s) >= len(w.prefix)+len(w.suffix) &&
strings.HasPrefix(s, w.prefix) &&
strings.HasSuffix(s, w.suffix)
}

// convert converts a list of string using the passed converter function
Expand Down

0 comments on commit aebaa1f

Please sign in to comment.