commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chtom...@apache.org
Subject [01/50] [abbrv] commons-imaging git commit: Local variable is not needed.
Date Wed, 24 May 2017 18:40:49 GMT
Repository: commons-imaging
Updated Branches:
  refs/heads/master [created] f46d642f1


Local variable is not needed.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/imaging/trunk@1775870 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/7f3d659c
Tree: http://git-wip-us.apache.org/repos/asf/commons-imaging/tree/7f3d659c
Diff: http://git-wip-us.apache.org/repos/asf/commons-imaging/diff/7f3d659c

Branch: refs/heads/master
Commit: 7f3d659c11c158808fb38a1425c15b6fbc2270a9
Parents: 98b3558
Author: Gary D. Gregory <ggregory@apache.org>
Authored: Fri Dec 23 18:14:25 2016 +0000
Committer: Gary D. Gregory <ggregory@apache.org>
Committed: Fri Dec 23 18:14:25 2016 +0000

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


http://git-wip-us.apache.org/repos/asf/commons-imaging/blob/7f3d659c/src/main/java/org/apache/commons/imaging/formats/pnm/PnmImageParser.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/imaging/formats/pnm/PnmImageParser.java b/src/main/java/org/apache/commons/imaging/formats/pnm/PnmImageParser.java
index 101d47b..3ae6b0b 100644
--- a/src/main/java/org/apache/commons/imaging/formats/pnm/PnmImageParser.java
+++ b/src/main/java/org/apache/commons/imaging/formats/pnm/PnmImageParser.java
@@ -207,8 +207,7 @@ public class PnmImageParser extends ImageParser {
     private FileInfo readHeader(final ByteSource byteSource)
             throws ImageReadException, IOException {
         try (InputStream is = byteSource.getInputStream()) {
-            final FileInfo ret = readHeader(is);
-            return ret;
+            return readHeader(is);
         }
     }
 


Mime
View raw message