From 1c07bce3731e631064c95b91196383b84e188621 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 14 Mar 2023 17:43:56 +0100 Subject: [PATCH] fix: rename project receiver variable --- pkg/models/prject.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/models/prject.go b/pkg/models/prject.go index 3e1bb21c7..34e3f772f 100644 --- a/pkg/models/prject.go +++ b/pkg/models/prject.go @@ -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() }