Fix error comparisons

This commit is contained in:
Deluan
2022-09-30 18:54:25 -04:00
parent 7b0a8f47de
commit db67c1277e
27 changed files with 93 additions and 73 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
package server
import (
"errors"
"fmt"
"io/fs"
"net/http"
@@ -118,7 +119,7 @@ func clientUniqueIdAdder(next http.Handler) http.Handler {
http.SetCookie(w, c)
} else {
c, err := r.Cookie(consts.UIClientUniqueIDHeader)
if err != http.ErrNoCookie {
if !errors.Is(err, http.ErrNoCookie) {
clientUniqueId = c.Value
}
}