Skip to content

Commit bf2cec4

Browse files
author
Leleat
committed
refactor: remove brackets to satisfy eslint
1 parent 91189d3 commit bf2cec4

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tiling-assistant@leleat-on-github/extension.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,8 @@ export default class TilingAssistantExtension extends Extension {
281281
try {
282282
parent.make_directory_with_parents(null);
283283
} catch (e) {
284-
if (e.code !== Gio.IOErrorEnum.EXISTS) {
284+
if (e.code !== Gio.IOErrorEnum.EXISTS)
285285
throw e;
286-
}
287286
}
288287

289288
const path = GLib.build_filenamev([parentPath, '/tiledSessionRestore2.json']);
@@ -292,9 +291,8 @@ export default class TilingAssistantExtension extends Extension {
292291
try {
293292
file.create(Gio.FileCreateFlags.NONE, null);
294293
} catch (e) {
295-
if (e.code !== Gio.IOErrorEnum.EXISTS) {
294+
if (e.code !== Gio.IOErrorEnum.EXISTS)
296295
throw e;
297-
}
298296
}
299297

300298
file.replace_contents(
@@ -328,9 +326,8 @@ export default class TilingAssistantExtension extends Extension {
328326
try {
329327
file.create(Gio.FileCreateFlags.NONE, null);
330328
} catch (e) {
331-
if (e.code !== Gio.IOErrorEnum.EXISTS) {
329+
if (e.code !== Gio.IOErrorEnum.EXISTS)
332330
throw e;
333-
}
334331
}
335332

336333
const [success, contents] = file.load_contents(null);

0 commit comments

Comments
 (0)