Skip to content

P1B: Refactor (src/controllers/search.js:36): Complex binary expression #164

@pskodr

Description

@pskodr

Uniqueness check

  • I have searched open issues and confirmed this file + smell is not already taken.

Full path to the JavaScript file

src/controllers/search.js

Function(s)/scope targeted

searchController.search

Relevant Qlty output

Complex binary expression
          36    let allowed = (req.query.in === 'users' && userPrivileges['search:users']) ||
 Complex binary expression
          37    (req.query.in === 'tags' && userPrivileges['search:tags']) ||

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions