Skip to content

Commit c5ae0fb

Browse files
committed
It appears we no longer need this on Windows.
1 parent b64ead5 commit c5ae0fb

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

lib/src/main/java/com/diffplug/spotless/npm/NodeJSWrapper.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import java.util.Objects;
2222
import java.util.Set;
2323

24-
import com.diffplug.spotless.LineEnding;
2524
import com.diffplug.spotless.ThrowingEx;
2625

2726
class NodeJSWrapper extends ReflectiveObjectWrapper {
@@ -36,9 +35,6 @@ class NodeJSWrapper extends ReflectiveObjectWrapper {
3635
public NodeJSWrapper(ClassLoader classLoader) {
3736
super(Reflective.withClassLoader(classLoader),
3837
reflective -> {
39-
if (LineEnding.PLATFORM_NATIVE.str().equals("\r\n")) {
40-
reflective.invokeStaticMethod(V8_RUNTIME_CLASS, "setFlags", "-color=false"); // required to run prettier on windows
41-
}
4238
if (alreadySetup.add(classLoader)) {
4339
// the bridge to node.js needs a .dll/.so/.dylib which gets loaded through System.load
4440
// the problem is that when the JVM loads that DLL, it is bound to the specific classloader that called System.load

0 commit comments

Comments
 (0)