Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalpharush committed May 5, 2023
1 parent 36142aa commit e42408b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion slither/detectors/assembly/shift_parameter_mixup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ def _check_function(self, f: FunctionContract) -> List[Output]:
BinaryType.LEFT_SHIFT,
BinaryType.RIGHT_SHIFT,
]:
if isinstance(ir.variable_left, Constant) and not isinstance(ir.variable_right, Constant):
if isinstance(ir.variable_left, Constant) and not isinstance(
ir.variable_right, Constant
):
info: DETECTOR_INFO = [
f,
" contains an incorrect shift operation: ",
Expand Down

0 comments on commit e42408b

Please sign in to comment.