This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git


The following commit(s) were added to refs/heads/master by this push:
     new 0775c85  In-line local var.
0775c85 is described below

commit 0775c85c6f0e636462c938dec425d1c550ff87b1
Author: Gary Gregory <gardgreg...@gmail.com>
AuthorDate: Sat Apr 27 13:54:46 2019 -0400

    In-line local var.
---
 .../java/org/apache/commons/vfs2/provider/sftp/SftpFileObject.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileObject.java
 
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileObject.java
index 2d78e71..011bf73 100644
--- 
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileObject.java
+++ 
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileObject.java
@@ -429,8 +429,7 @@ public class SftpFileObject extends 
AbstractFileObject<SftpFileSystem> {
         // Using InputStream directly from the channel
         // is much faster than the memory method.
         try {
-            final InputStream is = channel.get(getName().getPathDecoded(), 
null, filePointer);
-            return new SftpInputStream(channel, is);
+            return new SftpInputStream(channel, 
channel.get(getName().getPathDecoded(), null, filePointer));
         } catch (final SftpException e) {
             getAbstractFileSystem().putChannel(channel);
             throw new FileSystemException(e);

Reply via email to