jackxu2011 commented on code in PR #4459:
URL: https://github.com/apache/linkis/pull/4459#discussion_r1168432543


##########
linkis-commons/linkis-storage/src/main/java/org/apache/linkis/storage/excel/ExcelXlsReader.java:
##########
@@ -258,13 +263,15 @@ public void close() {
       if (fs != null) {
         fs.close();
       }
-      if (inputStream != null) {
-        inputStream.close();
+      try {
+        if (inputStream != null) {
+          inputStream.close();
+        }
+      } catch (IOException e) {
+        logger.info("ExcelXlsReader inputStream closed failed", e);

Review Comment:
   move the block up,   if the fs.close() throws exception, the try block will 
be skipped



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@linkis.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@linkis.apache.org
For additional commands, e-mail: notifications-h...@linkis.apache.org

Reply via email to