xo: Fix unicorn/prevent-abbreviations.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-01-25 11:04:52 -08:00
parent cc2424e0bf
commit 855d99dfa0
4 changed files with 9 additions and 9 deletions

View File

@@ -411,7 +411,7 @@ app.on('before-quit', () => {
});
// Send crash reports
process.on('uncaughtException', err => {
console.error(err);
console.error(err.stack);
process.on('uncaughtException', error => {
console.error(error);
console.error(error.stack);
});

View File

@@ -149,8 +149,8 @@ export default class WebView extends BaseComponent {
this.$el.addEventListener('did-fail-load', event => {
const {errorDescription} = event;
const hasConnectivityErr = SystemUtil.connectivityERR.includes(errorDescription);
if (hasConnectivityErr) {
const hasConnectivityError = SystemUtil.connectivityERR.includes(errorDescription);
if (hasConnectivityError) {
console.error('error', errorDescription);
if (!this.props.url.includes('network.html')) {
this.props.onNetworkError(this.props.index);

View File

@@ -129,9 +129,9 @@ export default class Logger {
return timestamp;
}
reportSentry(err: unknown): void {
reportSentry(error: unknown): void {
if (reportErrors) {
captureException(err);
captureException(error);
}
}

View File

@@ -66,10 +66,10 @@ async function wait(ms) {
}
// Quit the app, end the test, either in success (!err) or failure (err)
async function endTest(app, t, err) {
async function endTest(app, t, error) {
await app.client.windowByIndex(0);
await app.stop();
t.end(err);
t.end(error);
}
function getAppDataDir() {