From 7df84a7ff7c2d33b0f210608a489db7b5fc0df37 Mon Sep 17 00:00:00 2001 From: Xianming Zhong Date: Thu, 23 Jan 2020 04:18:22 +0800 Subject: [PATCH] Revert `finally` as `then` (#2683) Co-authored-by: Yasu Flores --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0b09254..8be5ff6 100755 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ axios.get('/user?ID=12345') // handle error console.log(error); }) - .finally(function () { + .then(function () { // always executed }); @@ -97,7 +97,7 @@ axios.get('/user', { .catch(function (error) { console.log(error); }) - .finally(function () { + .then(function () { // always executed });