fix: rename project receiver variable
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2023-03-14 17:43:56 +01:00
parent a7c2ca146c
commit 1c07bce373
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 3 deletions

View File

@ -912,12 +912,12 @@ func (p *Project) Delete(s *xorm.Session, a web.Auth) (err error) {
// DeleteBackgroundFileIfExists deletes the list's background file from the db and the filesystem,
// if one exists
func (l *Project) DeleteBackgroundFileIfExists() (err error) {
if l.BackgroundFileID == 0 {
func (p *Project) DeleteBackgroundFileIfExists() (err error) {
if p.BackgroundFileID == 0 {
return
}
file := files.File{ID: l.BackgroundFileID}
file := files.File{ID: p.BackgroundFileID}
return file.Delete()
}