Skip to content

Commit dbc1089

Browse files
committed
fix linting issues
1 parent b86fdd0 commit dbc1089

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

modules/default/calendar/calendarfetcher.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
const ical = require("node-ical");
22
const Log = require("logger");
3+
const { Agent } = require("undici");
34
const CalendarFetcherUtils = require("./calendarfetcherutils");
45
const { getUserAgent } = require("#server_functions");
5-
const { Agent } = require('undici');
6+
67

78
const FIFTEEN_MINUTES = 15 * 60 * 1000;
89
const THIRTY_MINUTES = 30 * 60 * 1000;
@@ -74,12 +75,12 @@ class CalendarFetcher {
7475
const options = { headers };
7576

7677
if (this.selfSignedCert) {
77-
options.dispatcher = new Agent({
78-
connect: {
79-
rejectUnauthorized: false
80-
}
81-
});
82-
}
78+
options.dispatcher = new Agent({
79+
connect: {
80+
rejectUnauthorized: false
81+
}
82+
});
83+
}
8384

8485
if (this.auth) {
8586
if (this.auth.method === "bearer") {

0 commit comments

Comments
 (0)