refactor(all): strict boolean conditions

This commit is contained in:
Manu Mtz.-Almeida
2018-08-31 18:59:09 +02:00
parent f383ebdf13
commit ba2230510e
96 changed files with 990 additions and 962 deletions

View File

@@ -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;