commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chtom...@apache.org
Subject [08/50] [abbrv] commons-imaging git commit: Local variable is not needed.
Date Wed, 24 May 2017 18:40:56 GMT
Local variable is not needed.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/imaging/trunk@1775878 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/commons-imaging/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-imaging/commit/650fa548
Tree: http://git-wip-us.apache.org/repos/asf/commons-imaging/tree/650fa548
Diff: http://git-wip-us.apache.org/repos/asf/commons-imaging/diff/650fa548

Branch: refs/heads/master
Commit: 650fa548a0e7f1192cbfa2297637c536b65f6f38
Parents: 4e0d10a
Author: Gary D. Gregory <ggregory@apache.org>
Authored: Fri Dec 23 18:19:25 2016 +0000
Committer: Gary D. Gregory <ggregory@apache.org>
Committed: Fri Dec 23 18:19:25 2016 +0000

----------------------------------------------------------------------
 .../org/apache/commons/imaging/formats/xpm/XpmImageParser.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-imaging/blob/650fa548/src/main/java/org/apache/commons/imaging/formats/xpm/XpmImageParser.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/imaging/formats/xpm/XpmImageParser.java b/src/main/java/org/apache/commons/imaging/formats/xpm/XpmImageParser.java
index dd0122c..c8b0508 100644
--- a/src/main/java/org/apache/commons/imaging/formats/xpm/XpmImageParser.java
+++ b/src/main/java/org/apache/commons/imaging/formats/xpm/XpmImageParser.java
@@ -239,8 +239,7 @@ public class XpmImageParser extends ImageParser {
 
     private XpmHeader readXpmHeader(final ByteSource byteSource)
             throws ImageReadException, IOException {
-        final XpmParseResult result = parseXpmHeader(byteSource);
-        return result.xpmHeader;
+        return parseXpmHeader(byteSource).xpmHeader;
     }
 
     private XpmParseResult parseXpmHeader(final ByteSource byteSource)


Mime
View raw message