[javascriptlint-commit] SF.net SVN: javascriptlint:[202] trunk/pyjsl/warnings.py
Status: Beta
Brought to you by:
matthiasmiller
|
From: <mat...@us...> - 2008-08-15 14:47:31
|
Revision: 202
http://javascriptlint.svn.sourceforge.net/javascriptlint/?rev=202&view=rev
Author: matthiasmiller
Date: 2008-08-15 14:47:29 +0000 (Fri, 15 Aug 2008)
Log Message:
-----------
comparison_type_conv: fix warning
Modified Paths:
--------------
trunk/pyjsl/warnings.py
Modified: trunk/pyjsl/warnings.py
===================================================================
--- trunk/pyjsl/warnings.py 2008-05-14 16:04:10 UTC (rev 201)
+++ trunk/pyjsl/warnings.py 2008-08-15 14:47:29 UTC (rev 202)
@@ -176,12 +176,11 @@
def comparison_type_conv(node):
for kid in node.kids:
if kid.kind == tok.PRIMARY and kid.opcode in (op.NULL, op.TRUE, op.FALSE):
- continue
+ raise LintWarning, kid
if kid.kind == tok.NUMBER and not kid.dval:
- continue
+ raise LintWarning, kid
if kid.kind == tok.STRING and not kid.atom:
- continue
- raise LintWarning, kid
+ raise LintWarning, kid
@lookfor(tok.DEFAULT)
def default_not_at_end(node):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|