mirror of
https://github.com/restic/restic.git
synced 2026-05-28 04:35:41 -04:00
filter: fix comment for validatePatterns
This commit is contained in:
parent
febdb8b564
commit
8b6eff5a47
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue