diff --git a/cryptoexchanges/blockfolio/widget.go b/cryptoexchanges/blockfolio/widget.go index cb6906c6..c915057e 100644 --- a/cryptoexchanges/blockfolio/widget.go +++ b/cryptoexchanges/blockfolio/widget.go @@ -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 diff --git a/wtf_tests/bargraph/bargraph_test.go b/wtftests/bargraph/bargraph_test.go similarity index 100% rename from wtf_tests/bargraph/bargraph_test.go rename to wtftests/bargraph/bargraph_test.go diff --git a/wtf_tests/colors_test.go b/wtftests/colors_test.go similarity index 93% rename from wtf_tests/colors_test.go rename to wtftests/colors_test.go index a52da11b..79344ebd 100644 --- a/wtf_tests/colors_test.go +++ b/wtftests/colors_test.go @@ -1,4 +1,4 @@ -package wtf_tests +package wtftests import ( "testing" diff --git a/wtf_tests/datetime_test.go b/wtftests/datetime_test.go similarity index 96% rename from wtf_tests/datetime_test.go rename to wtftests/datetime_test.go index 8415d345..a9159d07 100644 --- a/wtf_tests/datetime_test.go +++ b/wtftests/datetime_test.go @@ -1,4 +1,4 @@ -package wtf_tests +package wtftests import ( "testing" diff --git a/wtf_tests/position_test.go b/wtftests/position_test.go similarity index 96% rename from wtf_tests/position_test.go rename to wtftests/position_test.go index 370a3373..336bc964 100644 --- a/wtf_tests/position_test.go +++ b/wtftests/position_test.go @@ -1,4 +1,4 @@ -package wtf_tests +package wtftests import ( "testing" diff --git a/wtf_tests/utils_test.go b/wtftests/utils_test.go similarity index 99% rename from wtf_tests/utils_test.go rename to wtftests/utils_test.go index d78425cc..b1aa7994 100644 --- a/wtf_tests/utils_test.go +++ b/wtftests/utils_test.go @@ -1,4 +1,4 @@ -package wtf_tests +package wtftests import ( "testing"