You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by pe...@apache.org on 2022/08/30 11:51:33 UTC
[incubator-linkis] branch dev-1.3.0 updated: [linkis-udf-client] Modification of scala file floating red (#3133)
This is an automated email from the ASF dual-hosted git repository.
peacewong pushed a commit to branch dev-1.3.0
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git
The following commit(s) were added to refs/heads/dev-1.3.0 by this push:
new 2c2de8ac0 [linkis-udf-client] Modification of scala file floating red (#3133)
2c2de8ac0 is described below
commit 2c2de8ac019107553bdf0632f170cc6d6731d482
Author: 成彬彬 <10...@users.noreply.github.com>
AuthorDate: Tue Aug 30 19:51:28 2022 +0800
[linkis-udf-client] Modification of scala file floating red (#3133)
---
.../src/main/scala/org/apache/linkis/udf/UDFClient.scala | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/linkis-public-enhancements/linkis-udf/linkis-udf-client/src/main/scala/org/apache/linkis/udf/UDFClient.scala b/linkis-public-enhancements/linkis-udf/linkis-udf-client/src/main/scala/org/apache/linkis/udf/UDFClient.scala
index 4aa2aeffc..166c7e975 100644
--- a/linkis-public-enhancements/linkis-udf/linkis-udf-client/src/main/scala/org/apache/linkis/udf/UDFClient.scala
+++ b/linkis-public-enhancements/linkis-udf/linkis-udf-client/src/main/scala/org/apache/linkis/udf/UDFClient.scala
@@ -26,7 +26,6 @@ import org.apache.linkis.udf.vo.UDFInfoVo
import org.apache.commons.collections.CollectionUtils
import scala.collection.JavaConversions._
-import scala.collection.mutable
import scala.collection.mutable.ArrayBuffer
object UDFClient {
@@ -46,8 +45,9 @@ object UDFClient {
): ArrayBuffer[UDFInfoVo] = {
val udfInfoBuilder = new ArrayBuffer[UDFInfoVo]
val udfTree = queryUdfRpc(userName, category)
- if (null != udfTree)
+ if (null != udfTree) {
extractUdfInfosByUdfType(udfInfoBuilder, udfTree, userName, category, udfType)
+ }
udfInfoBuilder
}
@@ -116,8 +116,9 @@ object UDFClient {
} else {
queryUdfRpc(userName, category, child.getId, ConstantVar.SELF_USER)
}
- if (null != childInfo)
+ if (null != childInfo) {
extractUdfInfosByUdfType(udfInfoBuilder, childInfo, userName, category, udfType)
+ }
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org