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 <6153136+gkiran...@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;
                 }
 

Reply via email to