mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-20 11:38:51 +00:00
Use for own instead of _.forEach
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
This commit is contained in:
parent
5a0042c33d
commit
f65822ba94
@ -535,7 +535,7 @@ executeSpecialActionsAndHostConfig = (conf, oldConf, opts) ->
|
||||
.then (changedHostConfig) ->
|
||||
needsReboot = changedHostConfig
|
||||
if changedHostConfig
|
||||
_.forEach oldHostConfigVars, (val, key) ->
|
||||
for own key of oldHostConfigVars
|
||||
delete updatedValues[key]
|
||||
_.assign(updatedValues, hostConfigVars)
|
||||
.then ->
|
||||
|
Loading…
Reference in New Issue
Block a user