Skip to content

Commit

Permalink
R: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
aki-0421 committed Apr 28, 2023
1 parent 4b52e17 commit 0e294e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cloudflare/cache/method.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ func (c *Cache) Put(req *http.Request, res *http.Response) error {
return nil
}

// ErrCacheNotFount is returned when there is no matching cache.
var ErrCacheNotFount = errors.New("cache not found")
// ErrCacheNotFound is returned when there is no matching cache.
var ErrCacheNotFound = errors.New("cache not found")

// MatchOptions represents the options of the Match method.
type MatchOptions struct {
Expand All @@ -66,7 +66,7 @@ func (c *Cache) Match(req *http.Request, opts *MatchOptions) (*http.Response, er
return nil, err
}
if res.IsUndefined() {
return nil, ErrCacheNotFount
return nil, ErrCacheNotFound
}
return jshttp.ToResponse(res)
}
Expand Down Expand Up @@ -96,7 +96,7 @@ func (c *Cache) Delete(req *http.Request, opts *DeleteOptions) error {
return err
}
if !res.Bool() {
return ErrCacheNotFount
return ErrCacheNotFound
}
return nil
}

0 comments on commit 0e294e7

Please sign in to comment.