mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-21 12:28:44 +00:00
Gem5Device: simplfy if statement based on pylint recommendation
This commit is contained in:
parent
00c9bdc2a6
commit
c6e712d44c
@ -444,11 +444,10 @@ class BaseGem5Device(object):
|
|||||||
try:
|
try:
|
||||||
if int(output):
|
if int(output):
|
||||||
return True
|
return True
|
||||||
else:
|
|
||||||
return False
|
|
||||||
except ValueError:
|
except ValueError:
|
||||||
# If we cannot process the output, assume that there is no file
|
# If we cannot process the output, assume that there is no file
|
||||||
return False
|
pass
|
||||||
|
return False
|
||||||
|
|
||||||
def disconnect(self):
|
def disconnect(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user