lint: explicit check
Add an explicit check to the return value of subprocess.run.
This commit is contained in:
parent
c9739dbd2a
commit
6536a45d0a
1 changed files with 1 additions and 1 deletions
|
|
@ -227,7 +227,7 @@ def pretty_diff(
|
|||
|
||||
paths.append(path)
|
||||
|
||||
subprocess.run((["diff", "-u"] if simple else ["vimdiff"]) + paths)
|
||||
subprocess.run((["diff", "-u"] if simple else ["vimdiff"]) + paths, check=True)
|
||||
|
||||
return 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue