From 5c4634f93a19db8adb101c68eb19c4e2ff2f5b86 Mon Sep 17 00:00:00 2001 From: Chris Cummer Date: Thu, 28 Jun 2018 17:49:40 -0700 Subject: [PATCH] Tweaking minor code issues --- cryptoexchanges/blockfolio/widget.go | 4 ++-- {wtf_tests => wtftests}/bargraph/bargraph_test.go | 0 {wtf_tests => wtftests}/colors_test.go | 2 +- {wtf_tests => wtftests}/datetime_test.go | 2 +- {wtf_tests => wtftests}/position_test.go | 2 +- {wtf_tests => wtftests}/utils_test.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) rename {wtf_tests => wtftests}/bargraph/bargraph_test.go (100%) rename {wtf_tests => wtftests}/colors_test.go (93%) rename {wtf_tests => wtftests}/datetime_test.go (96%) rename {wtf_tests => wtftests}/position_test.go (96%) rename {wtf_tests => wtftests}/utils_test.go (99%) 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"