Use variables for string matching

The legacy code does case matching on these exact strings so it's better
to ensure they're constant.
This commit is contained in:
Arlo Breault 2021-07-08 12:47:23 -04:00
parent 87ad06a5e2
commit c3c84fdb48
3 changed files with 7 additions and 5 deletions

View file

@ -12,4 +12,7 @@ type Arg struct {
var (
ErrBadRequest = errors.New("bad request")
ErrInternal = errors.New("internal error")
StrTimedOut = "timed out waiting for answer!"
StrNoProxies = "no snowflake proxies currently available"
)