mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(all): strict boolean conditions
This commit is contained in:
@@ -60,7 +60,7 @@ export class VariableSelector {
|
||||
}
|
||||
}
|
||||
|
||||
render () {
|
||||
render() {
|
||||
if (this.value instanceof Color || this.value == null) {
|
||||
const color = this.value && this.value as Color,
|
||||
value = color.hex, {r, g, b} = color.rgb;
|
||||
|
||||
Reference in New Issue
Block a user