Mercurial > evolve
changeset 5850:b2d4cc5dff79 stable
evolve: remove pointless ternary operator
`if reset:` is literally one line above this operator.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 14 Mar 2021 16:56:16 +0800 |
parents | 689b384168fd |
children | 0c896e79d9aa |
files | hgext3rd/evolve/genericcaches.py hgext3rd/evolve/obscache.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/genericcaches.py Sun Mar 14 16:50:49 2021 +0800 +++ b/hgext3rd/evolve/genericcaches.py Sun Mar 14 16:56:16 2021 +0800 @@ -67,7 +67,7 @@ Subclasses MUST overide this method to actually affect the cache data. """ if reset: - self._cachekey = self.emptykey if reset else None + self._cachekey = self.emptykey else: self._cachekey = None
--- a/hgext3rd/evolve/obscache.py Sun Mar 14 16:50:49 2021 +0800 +++ b/hgext3rd/evolve/obscache.py Sun Mar 14 16:56:16 2021 +0800 @@ -137,7 +137,7 @@ # /!\ IMPORTANT /!\ # You must overide this method to actually if reset: - self._cachekey = self.emptykey if reset else None + self._cachekey = self.emptykey else: self._cachekey = None