iota-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tonyfaust...@apache.org
Subject [13/31] incubator-iota git commit: Removed scalastyle in JsonReciever
Date Tue, 29 Nov 2016 23:29:12 GMT
Removed scalastyle in JsonReciever


Project: http://git-wip-us.apache.org/repos/asf/incubator-iota/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-iota/commit/a0bca13c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-iota/tree/a0bca13c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-iota/diff/a0bca13c

Branch: refs/heads/master
Commit: a0bca13c57f82c9ad519962abea898b9baebf685
Parents: e5560ee
Author: Shivansh <shiv4nsh@gmail.com>
Authored: Fri Nov 4 00:20:59 2016 +0530
Committer: Shivansh <shiv4nsh@gmail.com>
Committed: Fri Nov 4 00:20:59 2016 +0530

----------------------------------------------------------------------
 fey-core/src/main/scala/org/apache/iota/fey/JsonReceiver.scala | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-iota/blob/a0bca13c/fey-core/src/main/scala/org/apache/iota/fey/JsonReceiver.scala
----------------------------------------------------------------------
diff --git a/fey-core/src/main/scala/org/apache/iota/fey/JsonReceiver.scala b/fey-core/src/main/scala/org/apache/iota/fey/JsonReceiver.scala
index 6781f01..c9e1925 100644
--- a/fey-core/src/main/scala/org/apache/iota/fey/JsonReceiver.scala
+++ b/fey-core/src/main/scala/org/apache/iota/fey/JsonReceiver.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
@@ -146,7 +145,7 @@ trait JsonReceiver extends Runnable{
 
     }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