iota-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tonyfaust...@apache.org
Subject [20/31] incubator-iota git commit: Removed scalastyle in feyGenericActorReciever
Date Tue, 29 Nov 2016 23:29:19 GMT
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 <shiv4nsh@gmail.com>
Authored: Fri Nov 4 00:44:48 2016 +0530
Committer: Shivansh <shiv4nsh@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()
         }


Mime
View raw message