Use for own instead of _.forEach

Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
This commit is contained in:
Pablo Carranza Velez 2017-12-10 21:50:27 -08:00
parent 5a0042c33d
commit f65822ba94

View File

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