chore: fix linting, working on #120

This commit is contained in:
harttle
2019-04-17 10:45:02 +08:00
parent 00bc1efe6a
commit 6c5dc336e7
4 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -14,11 +14,11 @@ export default class Context {
this.opts = applyDefault(opts)
this.environments = ctx
}
getRegister(key: string, defaultValue = {}) {
return this.registers[key] = this.registers[key] || defaultValue
getRegister (key: string, defaultValue = {}) {
return (this.registers[key] = this.registers[key] || defaultValue)
}
setRegister(key: string, value: any) {
return this.registers[key] = value
setRegister (key: string, value: any) {
return (this.registers[key] = value)
}
getAll () {
return [this.environments, ...this.scopes]