Change order of preference for displaying names

pull/46/head
Donnie Adams 10 years ago
parent 4aae872098
commit fc23c56de1
  1. 4
      types.go

@ -58,12 +58,12 @@ type User struct {
func (u User) String() string {
var str string
if u.FirstName != "" {
str += u.UserName
} else {
str += u.FirstName
if u.LastName != "" {
str += " " + u.LastName
}
} else {
str += u.UserName
}
return str
}