Skip to content

Instantly share code, notes, and snippets.

@nemtsov
Created September 10, 2009 05:39
Show Gist options
  • Save nemtsov/184333 to your computer and use it in GitHub Desktop.
Save nemtsov/184333 to your computer and use it in GitHub Desktop.
Date: Thu, 10 Sep 2009 01:32:17 -0400
Subject: [PATCH] comparing identical expressions
---
.../alchim/mojo/yuicompressor/BasicRhinoShell.java | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/src/main/java/net/sf/alchim/mojo/yuicompressor/BasicRhinoShell.java b/src/main/java/net/sf/alchim/mojo/yuicompressor/BasicRhinoShell.java
index b840f66..a6bc780 100644
--- a/src/main/java/net/sf/alchim/mojo/yuicompressor/BasicRhinoShell.java
+++ b/src/main/java/net/sf/alchim/mojo/yuicompressor/BasicRhinoShell.java
@@ -132,9 +132,6 @@ public class BasicRhinoShell extends ScriptableObject {
usage(arg);
}
double d = Context.toNumber(args[i]);
- if (d != d) {
- usage(arg);
- }
cx.setLanguageVersion((int) d);
continue;
}
--
1.6.4.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment