You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by sn...@apache.org on 2019/01/06 20:13:54 UTC

[nutch] branch master updated: NUTCH-2475 If and else-if branches has the same condition - remove duplicated condition to handle ftp status 451 (requested action aborted)

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

snagel pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nutch.git


The following commit(s) were added to refs/heads/master by this push:
     new d0a4abf  NUTCH-2475 If and else-if branches has the same condition - remove duplicated condition to handle ftp status 451   (requested action aborted)
d0a4abf is described below

commit d0a4abfd7cd294d7ffb14b6947c243e46c65f265
Author: Sebastian Nagel <sn...@apache.org>
AuthorDate: Sun Jan 6 21:05:27 2019 +0100

    NUTCH-2475 If and else-if branches has the same condition
    - remove duplicated condition to handle ftp status 451
      (requested action aborted)
---
 .../protocol-ftp/src/java/org/apache/nutch/protocol/ftp/Client.java      | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/plugin/protocol-ftp/src/java/org/apache/nutch/protocol/ftp/Client.java b/src/plugin/protocol-ftp/src/java/org/apache/nutch/protocol/ftp/Client.java
index f0dc7b8..71059f2 100644
--- a/src/plugin/protocol-ftp/src/java/org/apache/nutch/protocol/ftp/Client.java
+++ b/src/plugin/protocol-ftp/src/java/org/apache/nutch/protocol/ftp/Client.java
@@ -489,7 +489,6 @@ public class Client extends FTP {
       // ProFTPD [ftp.kernel.org]
       // there is second reply witing? no!
       // getReply();
-    } else if (reply == 451) { // FTPReply.ACTION_ABORTED
     } else {
       // what other kind of ftp server out there?
       return false;