mirror of
https://github.com/safing/portbase
synced 2025-09-09 13:55:47 +00:00
Silence linter
This commit is contained in:
parent
a49f6c6fe5
commit
2fb83cecb8
8 changed files with 57 additions and 50 deletions
|
@ -14,6 +14,7 @@ type snippet struct {
|
|||
}
|
||||
|
||||
// ParseQuery parses a plaintext query. Special characters (that must be escaped with a '\') are: `\()` and any whitespaces.
|
||||
//nolint:gocognit
|
||||
func ParseQuery(query string) (*Query, error) {
|
||||
snippets, err := extractSnippets(query)
|
||||
if err != nil {
|
||||
|
@ -195,6 +196,7 @@ func extractSnippets(text string) (snippets []*snippet, err error) {
|
|||
|
||||
}
|
||||
|
||||
//nolint:gocognit
|
||||
func parseAndOr(getSnippet func() (*snippet, error), remainingSnippets func() int, rootCondition bool) (Condition, error) {
|
||||
var isOr = false
|
||||
var typeSet = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue