[skip ci][内容]

1.修复部分空指针问题
2.修改go.mod
This commit is contained in:
MetaCubeX
2022-03-19 22:27:22 +08:00
parent e67f94b87a
commit 2d1c031ce0
8 changed files with 32 additions and 19 deletions

View File

@ -7,7 +7,7 @@ import (
)
type NOT struct {
common.Base
*common.Base
rule C.Rule
payload string
adapter string
@ -18,7 +18,7 @@ func (not *NOT) ShouldFindProcess() bool {
}
func NewNOT(payload string, adapter string) (*NOT, error) {
not := &NOT{payload: payload, adapter: adapter}
not := &NOT{Base: &common.Base{}, payload: payload, adapter: adapter}
rule, err := parseRuleByPayload(payload)
if err != nil {
return nil, err