Skip to content

Commit 7c226ca

Browse files
committed
fix flake8
1 parent 7a7f0fe commit 7c226ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

executor/engine/job/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@ def process_func(self):
256256
change the dir, redirect the stdout and stderr
257257
before the actual run."""
258258
cache_dir = self.cache_dir.resolve()
259-
if (self.redirect_out_err is not False) and \
260-
(not isinstance(self.func, CaptureOut)):
259+
is_redirect = (self.redirect_out_err is not False)
260+
if is_redirect and (not isinstance(self.func, CaptureOut)):
261261
if isinstance(self.redirect_out_err, str):
262262
path_stdout = Path(self.redirect_out_err)
263263
path_stderr = Path(self.redirect_out_err)

0 commit comments

Comments
 (0)