Explorar o código

Removed comment.

Bruce Marriner %!s(int64=9) %!d(string=hai) anos
pai
achega
f1775b9440
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      restapi.go

+ 1 - 1
restapi.go

@@ -111,10 +111,10 @@ func (s *Session) Login(email string, password string) (token string, err error)
 
 	var temp map[string]interface{}
 	err = json.Unmarshal(response, &temp)
-	// prevent crashing by manipulating a map that has no data
 	if err != nil {
 		return
 	}
+
 	token = temp["token"].(string)
 	return
 }