From cfbffb6dabf98fcb4a91c6552340b8c28e3edb74 Mon Sep 17 00:00:00 2001 From: Seednode Date: Tue, 20 Dec 2022 17:12:37 -0600 Subject: [PATCH] Fixed incorrect IsEmpty() check that would return true if exactly one of HasIncludes() or HasExcludes() returned true --- cmd/version.go | 2 +- cmd/web.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/version.go b/cmd/version.go index 249ed73..4a3afc6 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -10,7 +10,7 @@ import ( "github.com/spf13/cobra" ) -var Version = "0.26.2" +var Version = "0.27.0" func init() { rootCmd.AddCommand(versionCmd) diff --git a/cmd/web.go b/cmd/web.go index 7cbf051..f138b77 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -39,7 +39,7 @@ type Filters struct { } func (f *Filters) IsEmpty() bool { - return !(f.HasIncludes() && f.HasExcludes()) + return !(f.HasIncludes() || f.HasExcludes()) } func (f *Filters) HasIncludes() bool {