Skip to content

Commit

Permalink
Resolve Go Report Card issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bb4L committed Jun 25, 2021
1 parent 563a30a commit e609ec8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion api/radio.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ func (helper *Helper) GetRadio() (types.Radio, error) {
}

res, err := helper.prepareAndDoRequest(req)
logger.Println(res)

if err != nil {
logger.Println(err)
Expand Down
2 changes: 1 addition & 1 deletion logging/loggers.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const commonPrefix = "[rpi-radio-alarm-library] "

var prefixes = log.Ldate | log.Ltime | log.Lmsgprefix

// GetLogger returns a logger with given addional prefix
// GetLogger returns a logger with given additional prefix
func GetLogger(place string, output io.Writer) *log.Logger {
return log.New(output, commonPrefix+"["+place+"] ", prefixes)
}
3 changes: 2 additions & 1 deletion types/radio.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ func (r *Radio) StartRadio() {
}

func (r *Radio) startRadioWithFunction(startRadioFunction func() (int, error)) {
var err error = nil
var err error

if startRadioFunction == nil {
logger.Println("using default start")
startRadioFunction = defaultStartRadio
Expand Down

0 comments on commit e609ec8

Please sign in to comment.