Skip to content

Commit

Permalink
Parse(): Don't return error if lastlogoff doesn't exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
vibhavp committed Nov 13, 2015
1 parent 26f2fd7 commit 5339d66
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions steam.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,7 @@ func (p *PlayerInfo) Parse(elem map[string]interface{}) error {
p.Communityvisibilitystate = playerV

// Logoff
playerL, lErr := tryParsingNumber(elem["lastlogoff"])
if lErr != nil {
return lErr
}

playerL, _ := tryParsingNumber(elem["lastlogoff"])
p.Lastlogoff = playerL

// if the account has a steam community profile set then this should be 1
Expand Down

0 comments on commit 5339d66

Please sign in to comment.