mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
lint - Unnecessary parens after u'if' keyword
This commit is contained in:
parent
940c13c8a2
commit
2d4e051a97
@ -165,7 +165,7 @@ class Device(object):
|
||||
Generates next session id number.
|
||||
'''
|
||||
self.sid += 1
|
||||
if (self.sid > 0xffffffffL):
|
||||
if self.sid > 0xffffffffL:
|
||||
self.sid = 1 # rollover to 1
|
||||
return self.sid
|
||||
|
||||
@ -174,7 +174,7 @@ class Device(object):
|
||||
Generates next session id number.
|
||||
'''
|
||||
self.tid += 1
|
||||
if (self.tid > 0xffffffffL):
|
||||
if self.tid > 0xffffffffL:
|
||||
self.tid = 1 # rollover to 1
|
||||
return self.tid
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user