From e20da2890490e628450810df0c443a90bbcf3e76 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Tue, 24 Nov 2015 09:10:27 +0000 Subject: [PATCH] Remove useless double check on null introduced with the previous bugfix git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1716082 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/hssf/model/InternalWorkbook.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/java/org/apache/poi/hssf/model/InternalWorkbook.java b/src/java/org/apache/poi/hssf/model/InternalWorkbook.java index 863183365..93c8da16f 100644 --- a/src/java/org/apache/poi/hssf/model/InternalWorkbook.java +++ b/src/java/org/apache/poi/hssf/model/InternalWorkbook.java @@ -778,9 +778,7 @@ public final class InternalWorkbook { if (linkTable != null) { // also tell the LinkTable about the removed sheet //index hasn't change in the linktable - if (linkTable != null) { - linkTable.removeSheet(sheetIndex); - } + linkTable.removeSheet(sheetIndex); } }