Skip to content

Commit

Permalink
mall fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalpost committed Apr 23, 2017
1 parent 08ea9b3 commit 864693d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cache/conv.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func GetString(v interface{}) string {
return string(result)
default:
if v != nil {
return fmt.Sprintf("%v", result)
return fmt.Sprint(result)
}
}
return ""
Expand Down
2 changes: 1 addition & 1 deletion param/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var InBody MethodParamOption = func(p *MethodParam) {
func Default(defValue interface{}) MethodParamOption {
return func(p *MethodParam) {
if defValue != nil {
p.defValue = fmt.Sprintf("%v", defValue)
p.defValue = fmt.Sprint(defValue)
}
}
}

0 comments on commit 864693d

Please sign in to comment.