Skip to content

Commit

Permalink
fix(cdn): finfo.Name is always empty (#5828)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux committed May 27, 2021
1 parent 6d959bf commit c39725e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/cdn/storage/nfs/nfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ func (n *Buffer) ItemExists(ctx context.Context, m *gorpmapper.Mapper, db gorp.S
if err != nil {
return false, err
}
finfo, _, err := target.Lookup(path)
_, _, err = target.Lookup(path)
if err != nil {
return false, sdk.WithStack(err)
}
return finfo != nil && finfo.Name() != "", nil
return true, nil
}

func (n *Buffer) Status(_ context.Context) []sdk.MonitoringStatusLine {
Expand Down

0 comments on commit c39725e

Please sign in to comment.