Mercurial > hg
changeset 47366:15f6887c9c68
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
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 01 Jun 2021 09:11:54 +0200 |
parents | f39df5545cf2 |
children | 34a92e84267e |
files | mercurial/verify.py |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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 '