Skip to content

Commit

Permalink
Improve string representation of Identity
Browse files Browse the repository at this point in the history
  • Loading branch information
prydonius committed Apr 16, 2015
1 parent 650841e commit c367a94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions repo/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ func (i *Identity) hasEmail() bool {
func (i *Identity) String() string {
str := ""
if i.hasName() {
str += "\tName: " + i.Name
str += " Name: " + i.Name + "\n"
}
if i.hasEmail() {
str += "\tEmail: " + i.Email
str += " Email: " + i.Email
}
return str
}

0 comments on commit c367a94

Please sign in to comment.