Skip to content

Commit d928bb0

Browse files
committed
fix: update js-lint to 0.2.6, fixed linting warnings
1 parent dc6b8b9 commit d928bb0

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"@matrixai/mdns-linux-x64": "2.0.7"
6666
},
6767
"devDependencies": {
68-
"@matrixai/lint": "^0.2.4",
68+
"@matrixai/lint": "^0.2.6",
6969
"@fast-check/jest": "^2.1.0",
7070
"@swc/core": "^1.3.62",
7171
"@swc/jest": "^0.2.29",

src/MDNS.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ class MDNS {
229229
unicastSocketClose = (await utils.bindSocket(unicastSocket, port, '::'))
230230
.close;
231231
unicast = true;
232-
} catch (e) {
232+
} catch {
233233
unicast = false;
234234
} finally {
235235
if (unicastSocketClose != null) {
@@ -271,7 +271,7 @@ class MDNS {
271271
unicastSocket.addListener('error', (err) =>
272272
this.handleSocketError(err, unicastSocket),
273273
);
274-
} catch (e) {
274+
} catch {
275275
await unicastSocketClose();
276276
unicastSocket.removeAllListeners();
277277
unicast = false;

src/dns/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ function generateIPv6(ip: string): Uint8Array {
240240
for (let i = 0; i < 8; i++) {
241241
dv.setUint16(i * 2, parts[i].getValue(), false);
242242
}
243-
} catch (err) {
243+
} catch {
244244
throw new errors.ErrorDNSGenerate('Invalid IPv6 address');
245245
}
246246

0 commit comments

Comments
 (0)