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/31 10:11:43 UTC
[incubator-linkis] branch dev-1.3.1 updated: feat:Scala code format alarm clear in linkis-storage-script-dev-client (#3139)
This is an automated email from the ASF dual-hosted git repository.
peacewong pushed a commit to branch dev-1.3.1
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git
The following commit(s) were added to refs/heads/dev-1.3.1 by this push:
new 51570cc01 feat:Scala code format alarm clear in linkis-storage-script-dev-client (#3139)
51570cc01 is described below
commit 51570cc018f05e1d714f56b12ed2942f17fba97b
Author: ruY <43...@users.noreply.github.com>
AuthorDate: Wed Aug 31 18:11:37 2022 +0800
feat:Scala code format alarm clear in linkis-storage-script-dev-client (#3139)
---
.../scala/org/apache/linkis/filesystem/WorkspaceClientImpl.scala | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/linkis-public-enhancements/linkis-script-dev/linkis-storage-script-dev-client/src/main/scala/org/apache/linkis/filesystem/WorkspaceClientImpl.scala b/linkis-public-enhancements/linkis-script-dev/linkis-storage-script-dev-client/src/main/scala/org/apache/linkis/filesystem/WorkspaceClientImpl.scala
index 4f8859464..d9f2488ab 100644
--- a/linkis-public-enhancements/linkis-script-dev/linkis-storage-script-dev-client/src/main/scala/org/apache/linkis/filesystem/WorkspaceClientImpl.scala
+++ b/linkis-public-enhancements/linkis-script-dev/linkis-storage-script-dev-client/src/main/scala/org/apache/linkis/filesystem/WorkspaceClientImpl.scala
@@ -71,10 +71,9 @@ class WorkspaceClientImpl extends WorkspaceClient with WorkspaceHttpConf {
action.setParameter("fileName", fileName)
val result: Result = dwsClient.execute(action)
result match {
- case r: ScriptFromBMLResult => {
+ case r: ScriptFromBMLResult =>
if (r.getStatus != 0) throw new IllegalArgumentException(r.getMessage)
ScriptFromBMLResponse(r.scriptContent, r.metadata)
- }
case _ => null
}
}
@@ -93,10 +92,9 @@ class WorkspaceClientImpl extends WorkspaceClient with WorkspaceHttpConf {
action.setParameter("fileName", fileName)
val result: Result = dwsClient.execute(action)
result match {
- case r: ScriptFromBMLResult => {
+ case r: ScriptFromBMLResult =>
if (r.getStatus != 0) throw new IllegalArgumentException(r.getMessage)
ScriptFromBMLResponse(r.scriptContent, r.metadata)
- }
case _ => null
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org