# HG changeset patch # User Pierre-Yves David # Date 1622531514 -7200 # Node ID 15f6887c9c6868cb7c2d813bb8a07c6e55d20455 # Parent f39df5545cf230179155cc808b5e8dc43e6e4b1d 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 diff -r f39df5545cf2 -r 15f6887c9c68 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 '