Skip to content

Commit

Permalink
Fix: code quality issues using DeepSource (#907)
Browse files Browse the repository at this point in the history
  • Loading branch information
withshubh authored and abhinav committed May 25, 2021
1 parent 864bed1 commit 9f3c0ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion logger.go
Expand Up @@ -335,7 +335,7 @@ func getCallerFrame(skip int) (frame runtime.Frame, ok bool) {
const skipOffset = 2 // skip getCallerFrame and Callers

pc := make([]uintptr, 1)
numFrames := runtime.Callers(skip+skipOffset, pc[:])
numFrames := runtime.Callers(skip+skipOffset, pc)
if numFrames < 1 {
return
}
Expand Down
2 changes: 1 addition & 1 deletion zapcore/console_encoder.go
Expand Up @@ -56,7 +56,7 @@ type consoleEncoder struct {
// encoder configuration, it will omit any element whose key is set to the empty
// string.
func NewConsoleEncoder(cfg EncoderConfig) Encoder {
if len(cfg.ConsoleSeparator) == 0 {
if cfg.ConsoleSeparator == "" {
// Use a default delimiter of '\t' for backwards compatibility
cfg.ConsoleSeparator = "\t"
}
Expand Down

0 comments on commit 9f3c0ee

Please sign in to comment.