Skip to content

Commit

Permalink
Fix lint warnings and turn warnings back on (element-hq#7409)
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Raimist <aaron@raim.ist>
  • Loading branch information
aaronraimist committed Oct 5, 2018
1 parent 401c85a commit d035efb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/vector/getconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function getConfig(configJsonFilename) {
// which breaks if there's no config.json and we're
// loading from the filesystem (see above).
resolve(JSON.parse(body));
}
},
);
})
});
}
8 changes: 2 additions & 6 deletions src/vector/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ import CallHandler from 'matrix-react-sdk/lib/CallHandler';

import {getVectorConfig} from './getconfig';

// Disable warnings for now: we use deprecated bluebird functions
// and need to migrate, but they spam the console with warnings.
Promise.config({warnings: false});

let lastLocationHashSet = null;

function initRageshake() {
Expand Down Expand Up @@ -205,9 +201,9 @@ function getConfig(configJsonFilename) {
// which breaks if there's no config.json and we're
// loading from the filesystem (see above).
resolve(JSON.parse(body));
}
},
);
})
});
}

function onTokenLoginCompleted() {
Expand Down
4 changes: 2 additions & 2 deletions src/vector/platform/WebPlatform.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default class WebPlatform extends VectorBasePlatform {
global.Notification.requestPermission((result) => {
resolve(result);
});
})
});
}

displayNotification(title: string, msg: string, avatarUrl: string, room: Object) {
Expand Down Expand Up @@ -127,7 +127,7 @@ export default class WebPlatform extends VectorBasePlatform {
resolve(ver);
},
);
})
});
}

getAppVersion(): Promise<string> {
Expand Down

0 comments on commit d035efb

Please sign in to comment.