prettier printing
This commit is contained in:
@@ -41,13 +41,16 @@ func LikeNotName(pattern string) Like {
|
||||
}
|
||||
}
|
||||
|
||||
func NotLikeName(pattern string) Like {
|
||||
foo := LikeName(pattern)
|
||||
func LikeNot(like Like) Like {
|
||||
return func(d Delta) bool {
|
||||
return !foo(d)
|
||||
return !like(d)
|
||||
}
|
||||
}
|
||||
|
||||
func NotLikeName(pattern string) Like {
|
||||
return LikeNot(LikeName(pattern))
|
||||
}
|
||||
|
||||
func LikeName(pattern string) Like {
|
||||
return func(d Delta) bool {
|
||||
return like(pattern, d.Name)
|
||||
|
||||
Reference in New Issue
Block a user