From 55fa4a07042e8b059999ed17308f1568145e8369 Mon Sep 17 00:00:00 2001 From: heyuzhen <425626568@qq.com> Date: Tue, 1 Nov 2022 19:03:07 +0800 Subject: [PATCH] if statement is duplicate --- OpenXmlFormats/Spreadsheet/Styles/CT_Font.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/OpenXmlFormats/Spreadsheet/Styles/CT_Font.cs b/OpenXmlFormats/Spreadsheet/Styles/CT_Font.cs index 96c21692b..f8006b2af 100644 --- a/OpenXmlFormats/Spreadsheet/Styles/CT_Font.cs +++ b/OpenXmlFormats/Spreadsheet/Styles/CT_Font.cs @@ -415,8 +415,6 @@ public CT_BooleanProperty shadow } public int sizeOfShadowArray() { - if (this.shadowField == null) - return 0; return this.shadowField == null ? 0 : 1; } public CT_BooleanProperty AddNewShadow() @@ -440,8 +438,6 @@ public CT_BooleanProperty condense } public int sizeOfCondenseArray() { - if (this.condenseField == null) - return 0; return this.condenseField == null ? 0 : 1; } public CT_BooleanProperty AddNewCondense()