Created
May 21, 2019 21:08
-
-
Save jasonLaster/4beab9702561a27bbe56c4c1c83782f8 to your computer and use it in GitHub Desktop.
iff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/devtools/client/debugger/src/actions/breakpoints/index.js b/devtools/client/debugger/src/actions/breakpoints/index.js | |
index 802dc5149c5a..acaa45d7b40d 100644 | |
--- a/devtools/client/debugger/src/actions/breakpoints/index.js | |
+++ b/devtools/client/debugger/src/actions/breakpoints/index.js | |
@@ -117,11 +117,10 @@ export function toggleBreakpoints( | |
breakpoints: Breakpoint[] | |
) { | |
return async ({ dispatch }: ThunkArgs) => { | |
- const promises = breakpoints.map( | |
- breakpoint => | |
- shouldDisableBreakpoints | |
- ? dispatch(disableBreakpoint(cx, breakpoint)) | |
- : dispatch(enableBreakpoint(cx, breakpoint)) | |
+ const promises = breakpoints.map(breakpoint => | |
+ shouldDisableBreakpoints | |
+ ? dispatch(disableBreakpoint(cx, breakpoint)) | |
+ : dispatch(enableBreakpoint(cx, breakpoint)) | |
); | |
await Promise.all(promises); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment