Skip to content

Commit b96b790

Browse files
committed
Linter
1 parent ae4d58d commit b96b790

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

src/drive.ts

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class FileSystemDrive implements Contents.IDrive {
7676
mimetype: '',
7777
content: null,
7878
writable: true,
79-
type: 'directory',
79+
type: 'directory'
8080
};
8181
}
8282

@@ -113,7 +113,7 @@ export class FileSystemDrive implements Contents.IDrive {
113113
mimetype: '',
114114
content: null,
115115
writable: true,
116-
type: 'directory',
116+
type: 'directory'
117117
});
118118
}
119119
}
@@ -209,7 +209,7 @@ export class FileSystemDrive implements Contents.IDrive {
209209
format: toCopy.format,
210210
mimetype: toCopy.mimetype,
211211
type: toCopy.type,
212-
writable: toCopy.writable,
212+
writable: toCopy.writable
213213
};
214214

215215
await this.save(newPath, copy);
@@ -226,12 +226,16 @@ export class FileSystemDrive implements Contents.IDrive {
226226
const parentHandle = await this.getParentHandle(path);
227227

228228
if (options?.type === 'directory') {
229-
await parentHandle.getDirectoryHandle(PathExt.basename(path), { create: true });
229+
await parentHandle.getDirectoryHandle(PathExt.basename(path), {
230+
create: true
231+
});
230232

231233
return this.get(path);
232234
}
233235

234-
const handle = await parentHandle.getFileHandle(PathExt.basename(path), { create: true });
236+
const handle = await parentHandle.getFileHandle(PathExt.basename(path), {
237+
create: true
238+
});
235239
const writable = await handle.createWritable({});
236240

237241
const format = options?.format;
@@ -257,7 +261,10 @@ export class FileSystemDrive implements Contents.IDrive {
257261
const ext = PathExt.extname(toCopy.name);
258262

259263
if (ext) {
260-
newName = `${newName.slice(0, newName.length - ext.length)} (Copy)${ext}`;
264+
newName = `${newName.slice(
265+
0,
266+
newName.length - ext.length
267+
)} (Copy)${ext}`;
261268
} else {
262269
newName = `${newName} (Copy)`;
263270
}
@@ -272,7 +279,7 @@ export class FileSystemDrive implements Contents.IDrive {
272279
format: toCopy.format,
273280
mimetype: toCopy.mimetype,
274281
type: toCopy.type,
275-
writable: toCopy.writable,
282+
writable: toCopy.writable
276283
};
277284

278285
await this.save(newPath, copy);

0 commit comments

Comments
 (0)