mirror of
https://github.com/stashapp/stash.git
synced 2026-02-07 16:05:47 +01:00
Lint
This commit is contained in:
parent
588d1a14f0
commit
9b6c3bc880
1 changed files with 2 additions and 0 deletions
|
|
@ -285,12 +285,14 @@ func (qb *sceneFilterHandler) duplicatedCriterionHandler(duplicatedFilter *model
|
|||
|
||||
// Handle legacy 'duplicated' field for backwards compatibility
|
||||
// Only use it if set AND none of the new fields are set
|
||||
//nolint:staticcheck
|
||||
if duplicatedFilter.Duplicated != nil &&
|
||||
duplicatedFilter.Phash == nil &&
|
||||
duplicatedFilter.URL == nil &&
|
||||
duplicatedFilter.StashID == nil &&
|
||||
duplicatedFilter.Title == nil {
|
||||
qb.addSceneFilesTable(f)
|
||||
//nolint:staticcheck
|
||||
qb.applyPhashDuplication(f, *duplicatedFilter.Duplicated)
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue