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" "context"
"encoding/hex" "encoding/hex"
"errors" "errors"
"io"
"time"
"git.lumeweb.com/LumeWeb/libs5-go/encoding" "git.lumeweb.com/LumeWeb/libs5-go/encoding"
"git.lumeweb.com/LumeWeb/libs5-go/types" "git.lumeweb.com/LumeWeb/libs5-go/types"
"git.lumeweb.com/LumeWeb/portal/db/models" "git.lumeweb.com/LumeWeb/portal/db/models"
"git.lumeweb.com/LumeWeb/portal/renter" "git.lumeweb.com/LumeWeb/portal/renter"
"go.sia.tech/renterd/api" "go.sia.tech/renterd/api"
"io"
"time"
) )
type FileImpl struct { type FileImpl struct {
@ -110,7 +111,7 @@ func (f *FileImpl) Record() (*models.Upload, error) {
return nil, errors.New("file does not exist") return nil, errors.New("file does not exist")
} }
f.record = &record f.record = record
} }
return f.record, nil return f.record, nil