Skip to content

Commit

Permalink
Fix: code defects
Browse files Browse the repository at this point in the history
  • Loading branch information
leprosus committed May 16, 2019
1 parent cb54a4c commit 3a6303c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (result Result) String(column string) (value string, err error) {
return
}

cfg.logger.debug(fmt.Sprintf("Success get `%s` = %s", column, *value))
cfg.logger.debug(fmt.Sprintf("Success get `%s` = %s", column, value))

return
}
Expand All @@ -66,7 +66,7 @@ func (result Result) getUInt(column string, bitSize int) (ui64 uint64, err error

ui64, err = strconv.ParseUint(value, 10, bitSize)
if err != nil {
err := fmt.Errorf("can't convert value %s to uint%d: %s", value, bitSize, err.Error())
err = fmt.Errorf("can't convert value %s to uint%d: %s", value, bitSize, err.Error())

cfg.logger.error(fmt.Sprintf("Catch error %s", err.Error()))

Expand Down

0 comments on commit 3a6303c

Please sign in to comment.