1
0
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:
Chris Cummer 2018-06-28 17:49:40 -07:00
parent 0b1ec96545
commit cf776cd1b9
6 changed files with 6 additions and 6 deletions

View File

@ -105,10 +105,10 @@ func MakeApiRequest(token string, method string) ([]byte, error) {
} }
func GetAllPositions(token string) (*AllPositionsResponse, error) { func GetAllPositions(token string) (*AllPositionsResponse, error) {
jsn, err := MakeApiRequest(token, "get_all_positions") jsn, _ := MakeApiRequest(token, "get_all_positions")
var parsed AllPositionsResponse var parsed AllPositionsResponse
err = json.Unmarshal(jsn, &parsed) err := json.Unmarshal(jsn, &parsed)
if err != nil { if err != nil {
log.Fatalf("Failed to parse json %v", err) log.Fatalf("Failed to parse json %v", err)
return nil, err return nil, err

View File

@ -1,4 +1,4 @@
package wtf_tests package wtftests
import ( import (
"testing" "testing"

View File

@ -1,4 +1,4 @@
package wtf_tests package wtftests
import ( import (
"testing" "testing"

View File

@ -1,4 +1,4 @@
package wtf_tests package wtftests
import ( import (
"testing" "testing"

View File

@ -1,4 +1,4 @@
package wtf_tests package wtftests
import ( import (
"testing" "testing"