Skip to content

Commit 0afcfef

Browse files
committed
fix nosec G101 lint error
1 parent 2aa1e18 commit 0afcfef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lex.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ func (ll *LuaLexer) Register(s LexScanner) []string {
345345
}
346346
}
347347

348-
//nolint:funlen,gocognit,gocyclo
348+
//nolint:funlen,gocognit,gocyclo,nosec
349349
func (ll *LuaLexer) Lex(matchedToken string) <-chan NgxToken {
350350
tokenCh := make(chan NgxToken)
351351

@@ -357,7 +357,8 @@ func (ll *LuaLexer) Lex(matchedToken string) <-chan NgxToken {
357357
var inQuotes bool
358358

359359
// special handling for'set_by_lua_block' directive
360-
if matchedToken == "set_by_lua_block" { // #nosec G101
360+
// #nosec G101
361+
if matchedToken == "set_by_lua_block" {
361362
arg := ""
362363
for {
363364
if !ll.s.Scan() {

0 commit comments

Comments
 (0)