Browse Source

Cosmetics

Piotr Czajkowski 3 years ago
parent
commit
a8f51c6f96
1 changed files with 1 additions and 1 deletions
  1. 1 1
      search.go

+ 1 - 1
search.go

@@ -108,7 +108,7 @@ func (app *Application) search(TMs []TM, text string) SearchResults {
 		}
 		defer resp.Body.Close()
 
-		if resp.StatusCode == 401 {
+		if resp.StatusCode == http.StatusUnauthorized {
 			time.Sleep(app.Delay)
 
 			status, err := app.login()