misc: Fix lint errors

Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
Cameron Diver 2019-03-13 12:37:03 +00:00
parent b3192679c7
commit 1570935b2c
No known key found for this signature in database
GPG Key ID: 49690ED87032539F
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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`,
);