Skip to content

Commit

Permalink
Refactor return statement if no condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr Nechyporenko committed Nov 22, 2023
1 parent 10718be commit 390e275
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ odoo.define('crnd_web_tree_colored_field', function (require) {
}
}

// Default color if no condition is met
return '$table-dark-color';
// Return false if no condition is met
return false;
},
_checkCondition: function (obj, statement) {

Expand Down

0 comments on commit 390e275

Please sign in to comment.