From ffbb7e371ac7fc0844b8a06d280f403ba5ee6dd7 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 16 Feb 2024 08:53:53 -0500 Subject: [PATCH] fix: pointer not needed as FileExists is by ref now --- storage/file.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/storage/file.go b/storage/file.go index 851d819..f61c4cc 100644 --- a/storage/file.go +++ b/storage/file.go @@ -4,13 +4,14 @@ import ( "context" "encoding/hex" "errors" + "io" + "time" + "git.lumeweb.com/LumeWeb/libs5-go/encoding" "git.lumeweb.com/LumeWeb/libs5-go/types" "git.lumeweb.com/LumeWeb/portal/db/models" "git.lumeweb.com/LumeWeb/portal/renter" "go.sia.tech/renterd/api" - "io" - "time" ) type FileImpl struct { @@ -110,7 +111,7 @@ func (f *FileImpl) Record() (*models.Upload, error) { return nil, errors.New("file does not exist") } - f.record = &record + f.record = record } return f.record, nil