Fix new pylint issues
Fix C1803 - use-implicit-booleaness-not-comparison Change-Id: Ia6fe8483ab76c6b58ca983b7c7f95b48e97ad67b
This commit is contained in:
parent
237d443649
commit
5135d70aaf
|
@ -223,7 +223,7 @@ class AmphoraStatsController(base.BaseController):
|
||||||
|
|
||||||
stats = self.repositories.get_amphora_stats(context.session,
|
stats = self.repositories.get_amphora_stats(context.session,
|
||||||
self.amp_id)
|
self.amp_id)
|
||||||
if stats == []:
|
if not stats:
|
||||||
raise exceptions.NotFound(resource='Amphora stats for',
|
raise exceptions.NotFound(resource='Amphora stats for',
|
||||||
id=self.amp_id)
|
id=self.amp_id)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue