fix: pointer not needed as FileExists is by ref now

This commit is contained in:
Derrick Hammer 2024-02-16 08:53:53 -05:00
parent cd9cccc2a9
commit ffbb7e371a
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 3 deletions

View File

@ -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