Fix unnecessary if statement logic

This commit is contained in:
dabruh 2024-04-19 08:40:40 +02:00
parent da28a0e96e
commit 1888ec9c96
1 changed files with 2 additions and 3 deletions

View File

@ -351,13 +351,12 @@ main() {
fi
fi
if "$profile_found"; then
disable_disconnected_monitors
else
if ! "$profile_found"; then
echo "No profile found"
return 1
fi
disable_disconnected_monitors
move_nonexistent_i3_workspaces "$primary_monitor" 10
i3-msg restart >/dev/null
}