chore(utils): clean up extra blank lines in app_name_resolver.py
Remove superfluous whitespace to improve code readability.
This commit is contained in:
1 file changed
+2
-3
@@ -81,13 +81,12 @@ def format_window(title, wmclass):
|
|||||||
# Handle the case when HyprlandActiveWindow passes "unknown" instead of empty strings
|
# Handle the case when HyprlandActiveWindow passes "unknown" instead of empty strings
|
||||||
if (not title or title == "unknown") and (not wmclass or wmclass == "unknown"):
|
if (not title or title == "unknown") and (not wmclass or wmclass == "unknown"):
|
||||||
return "Finder"
|
return "Finder"
|
||||||
|
|
||||||
# Clean up "unknown" values
|
# Clean up "unknown" values
|
||||||
if title == "unknown":
|
if title == "unknown":
|
||||||
title = ""
|
title = ""
|
||||||
if wmclass == "unknown":
|
if wmclass == "unknown":
|
||||||
wmclass = ""
|
wmclass = ""
|
||||||
|
|
||||||
name = app_name_resolver.format_app_name(title, wmclass, True)
|
name = app_name_resolver.format_app_name(title, wmclass, True)
|
||||||
return name
|
return name
|
||||||
|
|
||||||
Reference in new issue
Block a user