refactor: simplify isPresent(x) ? x : y
to x || y
(#12166)
Closes #12166
This commit is contained in:

committed by
Tobias Bosch

parent
bdcf46f82e
commit
d972d82354
@ -26,7 +26,7 @@ class MyVisitor implements CssAstVisitor {
|
||||
* @internal
|
||||
*/
|
||||
_capture(method: string, ast: CssAst, context: any) {
|
||||
this.captures[method] = isPresent(this.captures[method]) ? this.captures[method] : [];
|
||||
this.captures[method] = this.captures[method] || [];
|
||||
this.captures[method].push([ast, context]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user