verify: use some intermediate variables instead of a multi-liner
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 01 Jun 2021 09:11:54 +0200
changeset 47366 15f6887c9c68
parent 47365 f39df5545cf2
child 47367 34a92e84267e
verify: use some intermediate variables instead of a multi-liner This is shorter and easier to read as the indentation remains the same. Differential Revision: https://phab.mercurial-scm.org/D10818
mercurial/verify.py
--- a/mercurial/verify.py	Tue Jun 01 09:11:07 2021 +0200
+++ b/mercurial/verify.py	Tue Jun 01 09:11:54 2021 +0200
@@ -514,11 +514,8 @@
                     if problem.warning:
                         self._warn(problem.warning)
                     elif problem.error:
-                        self._err(
-                            linkrev if linkrev is not None else lr,
-                            problem.error,
-                            f,
-                        )
+                        linkrev_msg = linkrev if linkrev is not None else lr
+                        self._err(linkrev_msg, problem.error, f)
                     else:
                         raise error.ProgrammingError(
                             b'problem instance does not set warning or error '