From 263bfafd048ff47603a79d62027310e2bc846dcb Mon Sep 17 00:00:00 2001 From: mkelvers Date: Sat, 13 Jun 2026 21:32:23 +0200 Subject: [PATCH] style: use http status constant --- integrations/jikan/relations.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/integrations/jikan/relations.go b/integrations/jikan/relations.go index 293d0fa..d1e10e6 100644 --- a/integrations/jikan/relations.go +++ b/integrations/jikan/relations.go @@ -4,6 +4,7 @@ import ( "context" "errors" "fmt" + "net/http" "sort" "strings" "time" @@ -86,7 +87,7 @@ func (c *Client) refreshWatchOrder(ctx context.Context, id int) (watchorder.Watc result, err := watchorder.FetchWatchOrder(requestCtx, c.httpClient, watchOrderURL) if err != nil { var statusError *watchorder.HTTPStatusError - if errors.As(err, &statusError) && statusError.StatusCode == 404 { + if errors.As(err, &statusError) && statusError.StatusCode == http.StatusNotFound { return watchorder.WatchOrderResult{}, watchorder.ErrWatchOrderNotFound } if errors.Is(err, watchorder.ErrWatchOrderMarkupNotFound) {