Index: Tools/Scripts/webkitpy/tool/steps/confirmdiff.py |
diff --git a/Tools/Scripts/webkitpy/tool/steps/confirmdiff.py b/Tools/Scripts/webkitpy/tool/steps/confirmdiff.py |
index 6cab6107dba1979fb217185e119df809959fb298..8472da6cc1a501997092c6218aec27605511b130 100644 |
--- a/Tools/Scripts/webkitpy/tool/steps/confirmdiff.py |
+++ b/Tools/Scripts/webkitpy/tool/steps/confirmdiff.py |
@@ -71,8 +71,8 @@ class ConfirmDiff(AbstractStep): |
if not self._options.confirm: |
return |
pretty_diff_file = self._show_pretty_diff() |
- diff_correct = self._tool.user.confirm("Was that diff correct?") |
if pretty_diff_file: |
+ diff_correct = self._tool.user.confirm("Was that diff correct?") |
pretty_diff_file.close() |
- if not diff_correct: |
- self._exit(1) |
+ if not diff_correct: |
+ self._exit(1) |