From bf3e8364bef64c4713242be54a5e62abd3bd7764 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 8631833653..93c8da16f4 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); } } -- 2.39.5