mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Tweaking minor code issues
This commit is contained in:
@@ -105,10 +105,10 @@ func MakeApiRequest(token string, method string) ([]byte, error) {
|
||||
}
|
||||
|
||||
func GetAllPositions(token string) (*AllPositionsResponse, error) {
|
||||
jsn, err := MakeApiRequest(token, "get_all_positions")
|
||||
jsn, _ := MakeApiRequest(token, "get_all_positions")
|
||||
var parsed AllPositionsResponse
|
||||
|
||||
err = json.Unmarshal(jsn, &parsed)
|
||||
err := json.Unmarshal(jsn, &parsed)
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to parse json %v", err)
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user