about summary refs log tree commit diff
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2022-11-01 19:33:39 +0100
committerProfpatsch <mail@profpatsch.de>2022-11-01 19:33:54 +0100
commit5616bdbeca4197859d360193298caf62d960a23e (patch)
tree7841b70440ade386524324e26ed4ac20c9c33e86
parentd6237e02b120c020bcaefb0fc109246702c5908c (diff)
pkgs/profpatsch/xrandr: fix assert statements
-rw-r--r--pkgs/profpatsch/xrandr.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/profpatsch/xrandr.nix b/pkgs/profpatsch/xrandr.nix
index 269ae244..02dc564a 100644
--- a/pkgs/profpatsch/xrandr.nix
+++ b/pkgs/profpatsch/xrandr.nix
@@ -135,21 +135,21 @@ let
     eDP1 = connected['eDP1']
 
     # laptop screen is active
-    assert('current' in eDP1)
+    assert 'current' in eDP1
 
     # how far the laptop screen should be offset to end
     # at the bottom of the monitor
     h_offset = 0
     for k, v in connected.items():
         if k == 'eDP1':
-            assert('current' in v)
+            assert 'current' in v
 
         else:
             h = int(v['native']['height'])
             h_offset = h - int(eDP1['native']['height'])
             external_monitor = (k, v)
             # can’t handle bigger laptop screens atm
-            assert(h_offset >= 0)
+            assert h_offset >= 0
 
     xrandr_command = [
         "--verbose",