aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/utils/_utils.py
diff options
context:
space:
mode:
authorsepro <sepro@sepr0.com>2024-12-02 16:29:30 +0100
committerGitHub <noreply@github.com>2024-12-02 16:29:30 +0100
commitd8fb3490863653182864d2a53522f350d67a9ff8 (patch)
treefa12606719269bddb36b5cc46995dda1a1a3bbc4 /yt_dlp/utils/_utils.py
parent2bea7936323ca4b6f3b9b1fdd892566223e30efa (diff)
[cleanup] Bump ruff to 0.8.x (#11608)
Authored by: seproDev
Diffstat (limited to 'yt_dlp/utils/_utils.py')
-rw-r--r--yt_dlp/utils/_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/utils/_utils.py b/yt_dlp/utils/_utils.py
index 8517b762e..699bf1e7f 100644
--- a/yt_dlp/utils/_utils.py
+++ b/yt_dlp/utils/_utils.py
@@ -2683,8 +2683,8 @@ def merge_dicts(*dicts):
merged = {}
for a_dict in dicts:
for k, v in a_dict.items():
- if (v is not None and k not in merged
- or isinstance(v, str) and merged[k] == ''):
+ if ((v is not None and k not in merged)
+ or (isinstance(v, str) and merged[k] == '')):
merged[k] = v
return merged