Skip to content

Commit

Permalink
add an explicit distinct to dedup
Browse files Browse the repository at this point in the history
Signed-off-by: sperlingxx <[email protected]>
  • Loading branch information
sperlingxx committed Feb 7, 2025
1 parent c35cac8 commit 96758bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ object RapidsPluginUtils extends Logging {
val resourceName = "spark-rapids-extra-plugins"
val classLoader = RapidsPluginUtils.getClass.getClassLoader
val resourceUrls = classLoader.getResources(resourceName)
val resourceUrlArray = resourceUrls.asScala.toArray
val resourceUrlArray = resourceUrls.asScala.toArray.distinct

if (resourceUrlArray.isEmpty) {
logDebug(s"Could not find file $resourceName in the classpath, not loading extra plugins")
Expand Down

0 comments on commit 96758bc

Please sign in to comment.