Skip to content

Commit 8096982

Browse files
committed
lint fix
1 parent c9f7fd3 commit 8096982

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

internal/fs/inode/dir.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,8 +616,7 @@ func (d *dirInode) LookUpChild(ctx context.Context, name string) (*Core, error)
616616
// This is the optimistic/fast path.
617617
var notFoundErr *gcs.NotFoundCacheError
618618
if err = runLookups(ctx, true); errors.As(err, &notFoundErr) && fileResult == nil && dirResult == nil {
619-
logger.Errorf("Cache lookup failed (%v). Attempting force fetch from source.", err)
620-
err = nil
619+
// logger.Errorf("Cache lookup failed (%v). Attempting force fetch from source.", err)
621620
// Run the lookups again, forcing a refresh.
622621
if err = runLookups(ctx, false); err != nil {
623622
// Both lookups failed (cache and force fetch), return the final error.
@@ -626,7 +625,6 @@ func (d *dirInode) LookUpChild(ctx context.Context, name string) (*Core, error)
626625
}
627626

628627
if err != nil && !errors.As(err, &notFoundErr) {
629-
logger.Errorf("Error: ", err)
630628
return nil, err
631629
}
632630

0 commit comments

Comments
 (0)