Fix for ineffassign .
This commit is contained in:
parent
68843f4dd0
commit
d1b5f4b1fb
3 changed files with 7 additions and 3 deletions
|
@ -193,11 +193,11 @@ func TestGetAccountFollowing(t *testing.T) {
|
|||
ClientSecret: "bar",
|
||||
AccessToken: "zoo",
|
||||
})
|
||||
fl, err := client.GetAccountFollowing(context.Background(), 123)
|
||||
_, err := client.GetAccountFollowing(context.Background(), 123)
|
||||
if err == nil {
|
||||
t.Fatalf("should be fail: %v", err)
|
||||
}
|
||||
fl, err = client.GetAccountFollowing(context.Background(), 1234567)
|
||||
fl, err := client.GetAccountFollowing(context.Background(), 1234567)
|
||||
if err != nil {
|
||||
t.Fatalf("should not be fail: %v", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue