Skip to content

Commit

Permalink
Fix: code quality issues using DeepSource (uber-go#907)
Browse files Browse the repository at this point in the history
  • Loading branch information
withshubh committed Feb 3, 2021
1 parent cab6f92 commit cb89e8f
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 @@ -337,7 +337,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 cb89e8f

Please sign in to comment.