# HG changeset patch # User Anton Shestakov # Date 1615712176 -28800 # Node ID b2d4cc5dff79b42ac92a9bac9f01c59d42754cbc # Parent 689b384168fd504cbd721d40e423da1aa7d6b3ae evolve: remove pointless ternary operator `if reset:` is literally one line above this operator. diff -r 689b384168fd -r b2d4cc5dff79 hgext3rd/evolve/genericcaches.py --- 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 diff -r 689b384168fd -r b2d4cc5dff79 hgext3rd/evolve/obscache.py --- 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