Skip to content

Commit

Permalink
Remove check that's done in a subroutine
Browse files Browse the repository at this point in the history
  • Loading branch information
bhs committed Sep 26, 2016
1 parent 62c7459 commit 51b5ae4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions span.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package basictracer

import (
"fmt"
"sync"
"time"

Expand Down Expand Up @@ -91,10 +90,6 @@ func (s *spanImpl) SetTag(key string, value interface{}) opentracing.Span {
}

func (s *spanImpl) LogKV(keyValues ...interface{}) {
if len(keyValues)%2 != 0 {
s.LogFields(log.Error(fmt.Errorf("Non-even keyValues len: %v", len(keyValues))))
return
}
fields, err := log.InterleavedKVToFields(keyValues...)
if err != nil {
s.LogFields(log.Error(err), log.String("function", "LogKV"))
Expand Down

0 comments on commit 51b5ae4

Please sign in to comment.