We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0087fe5 commit 53a2778Copy full SHA for 53a2778
cli/src/hooks/use-exit-handler.ts
@@ -76,7 +76,8 @@ export const useExitHandler = ({
76
77
const flushed = flushAnalytics()
78
if (flushed && typeof (flushed as Promise<void>).finally === 'function') {
79
- ;(flushed as Promise<void>).finally(exitNow)
+ const flushPromise = flushed as Promise<void>
80
+ flushPromise.finally(exitNow)
81
} else {
82
exitNow()
83
}
@@ -87,7 +88,8 @@ export const useExitHandler = ({
87
88
const handleSigint = () => {
89
90
91
92
93
94
95
0 commit comments