Skip to content

Commit 7fbc089

Browse files
committed
CI: Apply Go linter recommendations to entity.ManuallyAddedFaces() photoprism#5330
Signed-off-by: Michael Mayer <[email protected]>
1 parent 6630a5a commit 7fbc089

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/entity/query/faces.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ func Faces(knownOnly, unmatchedOnly, hidden, ignored bool) (result entity.Faces,
8686
}
8787

8888
// ManuallyAddedFaces returns all manually added face clusters for the specified subj_uid, or all subjects if "".
89-
func ManuallyAddedFaces(hidden, ignored bool, subj_uid string) (result entity.Faces, err error) {
89+
func ManuallyAddedFaces(hidden, ignored bool, subjUid string) (result entity.Faces, err error) {
9090
stmt := Db().
9191
Where("face_hidden = ?", hidden).
9292
Where("face_src = ?", entity.SrcManual)
9393

94-
if subj_uid != "" {
95-
stmt = stmt.Where("subj_uid = ?", subj_uid)
94+
if subjUid != "" {
95+
stmt = stmt.Where("subj_uid = ?", subjUid)
9696
} else {
9797
stmt = stmt.Where("subj_uid <> ''")
9898
}
@@ -213,7 +213,7 @@ func PurgeOrphanFaces(faceIds []string, ignored bool) (affected int, err error)
213213
} else {
214214
// see https://github.com/photoprism/photoprism/issues/3124#issuecomment-2558299360
215215
log.Debugf("faces: no affected rows for purge in batch %d - %d", i, j)
216-
//affected += len(ids)
216+
// affected += len(ids)
217217
}
218218
}
219219

0 commit comments

Comments
 (0)