From 01484573ef1acc4de788e412b38aaa09d61a531c Mon Sep 17 00:00:00 2001
From: Tim Jaacks <tim.jaacks@seco.com>
Date: Fri, 21 Jul 2023 10:08:27 +0200
Subject: [PATCH] Refactoring: replace if-expression with or

See for reference:
https://docs.sourcery.ai/Reference/Python/Default-Rules/or-if-exp-identity/
---
 scripts/.sourcery.yaml        | 1 -
 scripts/get_merge_requests.py | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/scripts/.sourcery.yaml b/scripts/.sourcery.yaml
index aa4e0d28..80da2482 100644
--- a/scripts/.sourcery.yaml
+++ b/scripts/.sourcery.yaml
@@ -32,7 +32,6 @@ rule_settings:
   - merge-comparisons
   - merge-else-if-into-elif
   - min-max-identity
-  - or-if-exp-identity
 
   rule_types:
   - refactoring
diff --git a/scripts/get_merge_requests.py b/scripts/get_merge_requests.py
index 1ae98233..17eae3c1 100755
--- a/scripts/get_merge_requests.py
+++ b/scripts/get_merge_requests.py
@@ -16,7 +16,7 @@ def get_merge_requests(
         all_merge_requests = project.mergerequests.list(
             source_branch=source_branch,
             target_branch=target_branch,
-            state=state if state else "all",
+            state=state or "all",
             all=True,
             retry_transient_errors=True,
         )
-- 
GitLab