Skip to content

Commit

Permalink
Style fixes in jsinterp
Browse files Browse the repository at this point in the history
Use the opposite operator != instead of not ==

force-test skip release
  • Loading branch information
Taapat committed Jul 9, 2024
1 parent 762f407 commit a036a78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsinterp.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ def eval_method():
obj = argvals[0]
argvals = argvals[1:]
if func_prototype == 'apply':
if not len(argvals) == 1:
if len(argvals) != 1:
raise RuntimeError('Takes two arguments')
if not isinstance(argvals, list):
raise RuntimeError('Second argument needs to be a list')
Expand Down

0 comments on commit a036a78

Please sign in to comment.