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

xuanwo pushed a commit to branch dropbox-refresh-token
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


The following commit(s) were added to refs/heads/dropbox-refresh-token by this 
push:
     new a343443e2 Add early return
a343443e2 is described below

commit a343443e22ef3384da68a062563e0417802b4316
Author: Xuanwo <[email protected]>
AuthorDate: Fri Jul 7 13:02:41 2023 +0800

    Add early return
    
    Signed-off-by: Xuanwo <[email protected]>
---
 core/src/services/dropbox/core.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/core/src/services/dropbox/core.rs 
b/core/src/services/dropbox/core.rs
index 3795be44b..bbb2e5208 100644
--- a/core/src/services/dropbox/core.rs
+++ b/core/src/services/dropbox/core.rs
@@ -177,6 +177,7 @@ impl DropboxCore {
                 .parse()
                 .expect("token must be valid header");
             req.headers_mut().insert(header::AUTHORIZATION, value);
+            return Ok(());
         }
 
         // Refresh invalid token.

Reply via email to