You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iota.apache.org by to...@apache.org on 2016/11/29 23:29:19 UTC
[20/31] incubator-iota git commit: Removed scalastyle in
feyGenericActorReciever
Removed scalastyle in feyGenericActorReciever
Project: http://git-wip-us.apache.org/repos/asf/incubator-iota/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-iota/commit/2be09059
Tree: http://git-wip-us.apache.org/repos/asf/incubator-iota/tree/2be09059
Diff: http://git-wip-us.apache.org/repos/asf/incubator-iota/diff/2be09059
Branch: refs/heads/master
Commit: 2be0905961ce6382206201f16c4171ebeba736c6
Parents: 57916d7
Author: Shivansh <sh...@gmail.com>
Authored: Fri Nov 4 00:44:48 2016 +0530
Committer: Shivansh <sh...@gmail.com>
Committed: Fri Nov 4 00:44:48 2016 +0530
----------------------------------------------------------------------
.../main/scala/org/apache/iota/fey/FeyGenericActorReceiver.scala | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-iota/blob/2be09059/fey-core/src/main/scala/org/apache/iota/fey/FeyGenericActorReceiver.scala
----------------------------------------------------------------------
diff --git a/fey-core/src/main/scala/org/apache/iota/fey/FeyGenericActorReceiver.scala b/fey-core/src/main/scala/org/apache/iota/fey/FeyGenericActorReceiver.scala
index 7361d01..e3b8001 100644
--- a/fey-core/src/main/scala/org/apache/iota/fey/FeyGenericActorReceiver.scala
+++ b/fey-core/src/main/scala/org/apache/iota/fey/FeyGenericActorReceiver.scala
@@ -1,4 +1,3 @@
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -173,7 +172,7 @@ abstract class FeyGenericActorReceiver(override val params: Map[String,String] =
}catch{
case e: Exception =>
- if(outputStream != null) {
+ if(Option(outputStream).isDefined) {
outputStream.close()
(new File(s"${CONFIG.DYNAMIC_JAR_REPO}/$jarName")).delete()
}