opsgenie / opsgenie-go-sdk-v2

Opsgenie GO SDK v2
Apache License 2.0
36 stars 65 forks source link

Combine the identical if-else branches in client/client.go #141

Open chengfang opened 10 months ago

chengfang commented 10 months ago

in client/client.go, the following if-else branches contain the identical logic and should be combined:

               if err == context.DeadlineExceeded {
                       return nil, err
               }
               return nil, err