Skip to content

Commit 779a241

Browse files
committed
downloader: change to use errors.Is(err, os.ErrNotExist)
Signed-off-by: Norio Nomura <[email protected]>
1 parent c0e6d8e commit 779a241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/downloader/downloader.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ func CacheEntries(opt ...Opt) (map[string]string, error) {
619619
downloadDir := filepath.Join(o.cacheDir, "download", "by-url-sha256")
620620
_, err := os.Stat(downloadDir)
621621
if err != nil {
622-
if os.IsNotExist(err) {
622+
if errors.Is(err, os.ErrNotExist) {
623623
return entries, nil
624624
}
625625
return nil, err

0 commit comments

Comments
 (0)