s%\(await .*\).then(\(.*\) => {%const \2 = \1;
s%.then(() =>\_.\W*\(.*\)%await \1
Created
March 15, 2019 03:07
-
-
Save bnchdrff/54b2647211e8b62d66b60e8b6dc13040 to your computer and use it in GitHub Desktop.
refactoring then to await
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment