refactor(logging): remove redundant home assignment in save_scrollback_safely
This commit is contained in:
@@ -22,7 +22,6 @@ def save_scrollback_safely(window: Window) -> None:
|
|||||||
if window.id in _logged_windows:
|
if window.id in _logged_windows:
|
||||||
return
|
return
|
||||||
|
|
||||||
home = os.path.expanduser("~")
|
|
||||||
snapshot_dir = os.environ.get(
|
snapshot_dir = os.environ.get(
|
||||||
"SCROLLBACK_HISTORY_DIR", os.path.join(home, ".terminal_history")
|
"SCROLLBACK_HISTORY_DIR", os.path.join(home, ".terminal_history")
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user