Skip to content

Commit c65c9a2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 22ef761 commit c65c9a2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

jupyter_server_fileid/manager.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def _create(self, path: str) -> str:
317317

318318
if existing_id:
319319
return existing_id
320-
320+
321321
id = self._uuid()
322322
self.con.execute("INSERT INTO Files (id, path) VALUES (?, ?)", (id, path))
323323
return id
@@ -612,10 +612,9 @@ def _sync_file(self, path, stat_info):
612612
"SELECT id, path, crtime FROM Files WHERE ino = ?", (stat_info.ino,)
613613
).fetchone()
614614

615-
616615
# if ino is not in database, return None
617616
if src is None:
618-
# If this path previously existed, but was removed OOB,
617+
# If this path previously existed, but was removed OOB,
619618
# then there will be an outdated record that we should
620619
# delete here to avoid old file ID's from being returned
621620
# anywhere.
@@ -687,7 +686,7 @@ def _create(self, path, stat_info):
687686
# If the file ID already exists, update it with stat_info.
688687
if existing_id:
689688
return existing_id
690-
689+
691690
id = self._uuid()
692691
self.con.execute(
693692
"INSERT INTO Files (id, path, ino, crtime, mtime, is_dir) VALUES (?, ?, ?, ?, ?, ?)",

0 commit comments

Comments
 (0)