Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartik Khare authored and Kartik Khare committed Sep 7, 2022
1 parent 2ba3254 commit 6854682
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,10 @@
import java.io.File;
import java.io.IOException;
import java.net.URI;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import org.apache.calcite.rel.core.Join;
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.lang3.JavaVersion;
import org.apache.commons.lang3.SystemUtils;
Expand All @@ -43,7 +40,6 @@
import org.apache.pinot.spi.plugin.PluginManager;
import org.apache.pinot.spi.utils.GroovyTemplateUtils;
import org.apache.pinot.tools.Command;
import org.apache.spark.launcher.SparkAppHandle;
import org.apache.spark.launcher.SparkLauncher;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -287,7 +283,8 @@ private void addDepsJarToDistributedCache(SparkLauncher sparkLauncher, String de
}

private boolean shouldLoadPlugin(String parentDir) {
boolean shouldLoadPlugin = _pluginsToLoad == null && !_pluginsToExclude.contains(parentDir);
boolean shouldLoadPlugin = _pluginsToLoad == null && !_pluginsToExclude.contains(parentDir)
&& !parentDir.contains("spark");
shouldLoadPlugin = shouldLoadPlugin || (_pluginsToLoad != null && _pluginsToLoad.contains(parentDir));
shouldLoadPlugin = shouldLoadPlugin || _sparkVersion.getPluginName().contentEquals(parentDir);
return shouldLoadPlugin;
Expand Down
1 change: 0 additions & 1 deletion pinot-tools/src/main/resources/appAssemblerScriptTemplate
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ if [ -z "$PLUGINS_CLASSPATH" ] ; then
fi
fi
done

unset IFS
fi

Expand Down

0 comments on commit 6854682

Please sign in to comment.