From c39725e58a40ff4f1900a93330709ec2f3ae760a Mon Sep 17 00:00:00 2001 From: Guiheux Steven Date: Thu, 27 May 2021 17:14:35 +0200 Subject: [PATCH] fix(cdn): finfo.Name is always empty (#5828) --- engine/cdn/storage/nfs/nfs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/cdn/storage/nfs/nfs.go b/engine/cdn/storage/nfs/nfs.go index b6c5b5cee1..3127e4f8e7 100644 --- a/engine/cdn/storage/nfs/nfs.go +++ b/engine/cdn/storage/nfs/nfs.go @@ -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 {