style: remove redundant comment in list_sessions
This commit is contained in:
@@ -187,8 +187,6 @@ class SessionManager:
|
|||||||
if first_line:
|
if first_line:
|
||||||
data = json.loads(first_line)
|
data = json.loads(first_line)
|
||||||
if data.get("_type") == "metadata":
|
if data.get("_type") == "metadata":
|
||||||
# Prefer the key stored in metadata; fall back to
|
|
||||||
# filename-based heuristic for legacy files.
|
|
||||||
key = data.get("key") or path.stem.replace("_", ":", 1)
|
key = data.get("key") or path.stem.replace("_", ":", 1)
|
||||||
sessions.append({
|
sessions.append({
|
||||||
"key": key,
|
"key": key,
|
||||||
|
|||||||
Reference in New Issue
Block a user