diff options
author | PJ Fanning <fanningpj@apache.org> | 2022-08-06 21:06:50 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2022-08-06 21:06:50 +0000 |
commit | eaa27548fa4f1d374cfb68c9a3f51b6d0e6b8d3d (patch) | |
tree | 80fbe200d1a084dbd5c404fbcc70b4315bd595d3 /poi | |
parent | 3247a4160e9ba6e5e788b4bcd6db3a40c4e24bdf (diff) | |
download | poi-eaa27548fa4f1d374cfb68c9a3f51b6d0e6b8d3d.tar.gz poi-eaa27548fa4f1d374cfb68c9a3f51b6d0e6b8d3d.zip |
[github-366] remove unnecessary local vars. Thanks to Arturo Bernal. This closes #366
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903257 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi')
-rw-r--r-- | poi/src/main/java/org/apache/poi/ss/formula/functions/Areas.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/poi/src/main/java/org/apache/poi/ss/formula/functions/Areas.java b/poi/src/main/java/org/apache/poi/ss/formula/functions/Areas.java index f6034ef5a5..1a7ed187d4 100644 --- a/poi/src/main/java/org/apache/poi/ss/formula/functions/Areas.java +++ b/poi/src/main/java/org/apache/poi/ss/formula/functions/Areas.java @@ -40,8 +40,7 @@ public final class Areas implements Function { RefListEval refListEval = (RefListEval) valueEval; result = refListEval.getList().size(); } - NumberEval numberEval = new NumberEval(new NumberPtg(result)); - return numberEval; + return new NumberEval(new NumberPtg(result)); } catch (Exception e) { return ErrorEval.VALUE_INVALID; } |