mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 20:09:11 +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:
|
||||
if int(output):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
except ValueError:
|
||||
# If we cannot process the output, assume that there is no file
|
||||
return False
|
||||
pass
|
||||
return False
|
||||
|
||||
def disconnect(self):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user