Skip to content

Commit

Permalink
delete fmt.Sprintf()
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangymPerson committed Apr 19, 2021
1 parent 1284eb1 commit a768663
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions java_util/locale.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

package java_util

import "fmt"

// LocaleEnum is Locale enumeration value
type LocaleEnum int

Expand Down Expand Up @@ -58,7 +56,7 @@ type Locale struct {

func (locale *Locale) String() string {
if len(locale.County) != 0 {
return fmt.Sprintf("%s_%s", locale.Lang, locale.County)
return locale.Lang + "_" + locale.County
}
return locale.Lang
}
Expand Down

0 comments on commit a768663

Please sign in to comment.