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:
parent
5de4dd65a5
commit
5c4634f93a
@ -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
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package wtf_tests
|
package wtftests
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
@ -1,4 +1,4 @@
|
|||||||
package wtf_tests
|
package wtftests
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
@ -1,4 +1,4 @@
|
|||||||
package wtf_tests
|
package wtftests
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
@ -1,4 +1,4 @@
|
|||||||
package wtf_tests
|
package wtftests
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
Loading…
x
Reference in New Issue
Block a user