mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +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()
|
||||
return unsubscribe
|
||||
|
||||
return module.exports.subscribe(changeHandler)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user