You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by di...@apache.org on 2020/05/03 19:28:08 UTC

[airavata-mft] 02/02: Update README.md

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

dimuthuupe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-mft.git

commit 601b2725b765f352058978f8509a71d58e8f56e8
Author: Gopi kiran <61...@users.noreply.github.com>
AuthorDate: Sun May 3 15:23:55 2020 -0400

    Update README.md
---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index e82505d..f0da0f0 100755
--- a/README.md
+++ b/README.md
@@ -74,7 +74,7 @@ public class SampleClient {
             try {
                 TransferStateApiResponse transferState = client.getTransferState(TransferStateApiRequest.newBuilder().setTransferId(transferApiResponse.getTransferId()).build());
                 System.out.println("Latest Transfer State " + transferState.getState());
-                if (transferState.getState().equals("COMPLETED")) {
+                if ("COMPLETED".equals(transferState.getState()) || "FAILED".equals(transferState.getState()) {
                     break;
                 }