Skip to content

Commit ff764c9

Browse files
Prefer implicit false over None check
This patch prefers an implicit False comparison in regalloc_trace_worker rather than just checking if the value is None. This protects against other values that end up being false and makes us more consistent with the Google Python style guide.
1 parent e28bf48 commit ff764c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler_opt/es/regalloc_trace/regalloc_trace_worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def __init__(
153153
self._clang_path = clang_path
154154
self._basic_block_trace_model_path = basic_block_trace_model_path
155155
self._thread_count = thread_count
156-
self._extra_bb_trace_model_flags = ([] if extra_bb_trace_model_flags is None
156+
self._extra_bb_trace_model_flags = ([] if not extra_bb_trace_model_flags
157157
else extra_bb_trace_model_flags)
158158

159159
self._has_local_corpus = False

0 commit comments

Comments
 (0)