opsgenie / opsgenie-go-sdk-v2

Opsgenie GO SDK v2
Apache License 2.0
34 stars 63 forks source link

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

Open chengfang opened 7 months ago

chengfang commented 7 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