Removed comment.
This commit is contained in:
parent
97aa01d88f
commit
f1775b9440
1 changed files with 1 additions and 1 deletions
|
@ -111,10 +111,10 @@ func (s *Session) Login(email string, password string) (token string, err error)
|
||||||
|
|
||||||
var temp map[string]interface{}
|
var temp map[string]interface{}
|
||||||
err = json.Unmarshal(response, &temp)
|
err = json.Unmarshal(response, &temp)
|
||||||
// prevent crashing by manipulating a map that has no data
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
token = temp["token"].(string)
|
token = temp["token"].(string)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue