mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-14 06:46:35 +00:00
refactor(store): Return unsubscribe directly
This commit is contained in:
parent
3d47f494a8
commit
ad6be11bbc
@ -535,7 +535,7 @@ module.exports.observe = (onChange) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const unsubscribe = module.exports.subscribe(changeHandler)
|
|
||||||
changeHandler()
|
changeHandler()
|
||||||
return unsubscribe
|
|
||||||
|
return module.exports.subscribe(changeHandler)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user