Skip to content

Commit

Permalink
add lint suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
edmarSoaress authored and eltinMeli committed Feb 9, 2024
1 parent 5c0cbdb commit 473cebb
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test/integration/payment/payment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ func TestPayment(t *testing.T) {
result, err := client.Create(context.Background(), dto)
if result == nil {
t.Error("result can't be nil")
return
}
if result != nil && result.ID == 0 {
if result.ID == 0 {
t.Error("id can't be nil")
}
if err != nil {
Expand Down Expand Up @@ -80,6 +81,7 @@ func TestPayment(t *testing.T) {
result, err := client.Create(context.Background(), dto)
if result == nil {
t.Error("result can't be nil")
return
}
if err != nil {
t.Errorf(err.Error())
Expand All @@ -88,8 +90,9 @@ func TestPayment(t *testing.T) {
result, err = client.Get(context.Background(), result.ID)
if result == nil {
t.Error("result can't be nil")
return
}
if result != nil && result.ID == 0 {
if result.ID == 0 {
t.Error("id can't be nil")
}
if err != nil {
Expand All @@ -115,6 +118,7 @@ func TestPayment(t *testing.T) {
result, err := client.Create(context.Background(), dto)
if result == nil {
t.Error("result can't be nil")
return
}
if err != nil {
t.Errorf(err.Error())
Expand All @@ -123,8 +127,9 @@ func TestPayment(t *testing.T) {
result, err = client.Cancel(context.Background(), result.ID)
if result == nil {
t.Error("result can't be nil")
return
}
if result != nil && result.ID == 0 {
if result.ID == 0 {
t.Error("id can't be nil")
}
if err != nil {
Expand Down Expand Up @@ -157,6 +162,7 @@ func TestPayment(t *testing.T) {
result, err := client.Create(context.Background(), dto)
if result == nil {
t.Error("result can't be nil")
return
}
if err != nil {
t.Errorf(err.Error())
Expand Down

0 comments on commit 473cebb

Please sign in to comment.