Skip to content

Commit

Permalink
fix: add parenthesis around preview exception check
Browse files Browse the repository at this point in the history
  • Loading branch information
iwong-isp committed Jun 27, 2023
1 parent e2b8649 commit cf327f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isp-functions/noun-deps.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = targetValue => {
// Split into path pieces ignoring blank/empty ones and params.
let pieces = targetValue.split('/').filter(i => !!i);

if ((pieces.length === 1 && pieces[0] === 'search') || pieces[0] === 'me' || pieces[0] === 'cust' || pieces.length === 6 && pieces[4] === 'preview') {
if ((pieces.length === 1 && pieces[0] === 'search') || pieces[0] === 'me' || pieces[0] === 'cust' || (pieces.length === 6 && pieces[4] === 'preview')) {
// Top-level exceptions. Skip.
return;
}
Expand Down

0 comments on commit cf327f3

Please sign in to comment.