fix: pointer not needed as FileExists is by ref now
This commit is contained in:
parent
cd9cccc2a9
commit
ffbb7e371a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue