Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
nenadnoveljic committed Jan 9, 2025
1 parent d652e2c commit d8296c0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/trace/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,9 @@ func obfuscationMode(conf *AgentConfig, sqllexerEnabled bool) obfuscate.Obfuscat
if conf.SQLObfuscationMode != "" {
if conf.SQLObfuscationMode == string(obfuscate.ObfuscateOnly) || conf.SQLObfuscationMode == string(obfuscate.ObfuscateAndNormalize) {
return obfuscate.ObfuscationMode(conf.SQLObfuscationMode)
} else {
log.Warnf("Invalid SQL obfuscator mode %s, falling back to default", conf.SQLObfuscationMode)
return ""
}
log.Warnf("Invalid SQL obfuscator mode %s, falling back to default", conf.SQLObfuscationMode)
return ""
}
if sqllexerEnabled {
return obfuscate.ObfuscateOnly
Expand Down

0 comments on commit d8296c0

Please sign in to comment.