mirror of
https://github.com/restic/restic.git
synced 2026-05-21 09:35:23 +00:00
filter: fix comment for validatePatterns
This commit is contained in:
@@ -228,8 +228,8 @@ func (e *InvalidPatternError) Error() string {
|
||||
return "invalid pattern(s) provided:\n" + strings.Join(e.InvalidPatterns, "\n")
|
||||
}
|
||||
|
||||
// ValidatePatterns validates a slice of patterns.
|
||||
// Returns true if all patterns are valid - false otherwise, along with the invalid patterns.
|
||||
// ValidatePatterns validates a slice of patterns. Returns an error if any pattern is invalid.
|
||||
// The invalid patterns are returned in the error.
|
||||
func ValidatePatterns(patterns []string) error {
|
||||
invalidPatterns := make([]string, 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user