Skip to content

Commit 9c5cc43

Browse files
committed
fix failing linter
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
1 parent 746faae commit 9c5cc43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

re/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func (re *re) AddRule(ctx context.Context, session authn.Session, r Rule) (retRu
6363
return Rule{}, nil, errors.Wrap(svcerr.ErrMalformedEntity, ErrGoroutinesNotAllowed)
6464
}
6565
if r.Logic.Type == GoType && panicRegex.MatchString(r.Logic.Value) {
66-
return Rule{}, errors.Wrap(svcerr.ErrMalformedEntity, ErrPanicNotAllowed)
66+
return Rule{}, nil, errors.Wrap(svcerr.ErrMalformedEntity, ErrPanicNotAllowed)
6767
}
6868

6969
id, err := re.idp.ID()

0 commit comments

Comments
 (0)