diff --git a/src/compose/service.ts b/src/compose/service.ts index 39b00bd2..c4b6af25 100644 --- a/src/compose/service.ts +++ b/src/compose/service.ts @@ -802,8 +802,8 @@ export class Service { appId: number, serviceName: string, ): { [envVarName: string]: string } { - let defaultEnv: { [envVarName: string]: string } = {}; - for (let namespace of ['BALENA', 'RESIN']) { + const defaultEnv: { [envVarName: string]: string } = {}; + for (const namespace of ['BALENA', 'RESIN']) { _.assign( defaultEnv, _.mapKeys( diff --git a/src/compose/utils.ts b/src/compose/utils.ts index 33f56c26..ec2c7866 100644 --- a/src/compose/utils.ts +++ b/src/compose/utils.ts @@ -348,7 +348,7 @@ export function addFeaturesFromLabels( }`; } // We keep balena.sock for backwards compatibility - if (constants.dockerSocket != '/var/run/balena.sock') { + if (constants.dockerSocket !== '/var/run/balena.sock') { service.config.volumes.push( `${constants.dockerSocket}:/var/run/balena.sock`, );