Skip to content

Commit

Permalink
refactor: remove brackets to satisfy eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Leleat committed Aug 5, 2024
1 parent 91189d3 commit bf2cec4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tiling-assistant@leleat-on-github/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,8 @@ export default class TilingAssistantExtension extends Extension {
try {
parent.make_directory_with_parents(null);
} catch (e) {
if (e.code !== Gio.IOErrorEnum.EXISTS) {
if (e.code !== Gio.IOErrorEnum.EXISTS)
throw e;
}
}

const path = GLib.build_filenamev([parentPath, '/tiledSessionRestore2.json']);
Expand All @@ -292,9 +291,8 @@ export default class TilingAssistantExtension extends Extension {
try {
file.create(Gio.FileCreateFlags.NONE, null);
} catch (e) {
if (e.code !== Gio.IOErrorEnum.EXISTS) {
if (e.code !== Gio.IOErrorEnum.EXISTS)
throw e;
}
}

file.replace_contents(
Expand Down Expand Up @@ -328,9 +326,8 @@ export default class TilingAssistantExtension extends Extension {
try {
file.create(Gio.FileCreateFlags.NONE, null);
} catch (e) {
if (e.code !== Gio.IOErrorEnum.EXISTS) {
if (e.code !== Gio.IOErrorEnum.EXISTS)
throw e;
}
}

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

0 comments on commit bf2cec4

Please sign in to comment.