Skip to content

Commit 85e9afc

Browse files
gkzfacebook-github-bot
authored andcommitted
Fix future sketchy-null errors after bug fix in '@flow strict' files
Reviewed By: wcheng86 Differential Revision: D9599872 fbshipit-source-id: dabcfd6fb7b6ec5a13801e84fe55d7d3c7ba9adb
1 parent 1c4533d commit 85e9afc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

server/util/debugger-ui/deltaUrlToBlobUrl.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,16 @@
4141

4242
// If nothing changed, avoid recreating a bundle blob by reusing the
4343
// previous one.
44-
if (deltaPatcher.getLastNumModifiedFiles() === 0 && cachedBundle) {
44+
if (
45+
deltaPatcher.getLastNumModifiedFiles() === 0 &&
46+
cachedBundle != null &&
47+
cachedBundle !== ''
48+
) {
4549
return cachedBundle;
4650
}
4751

4852
// Clean up the previous bundle URL to not leak memory.
49-
if (cachedBundle) {
53+
if (cachedBundle != null && cachedBundle !== '') {
5054
URL.revokeObjectURL(cachedBundle);
5155
}
5256

0 commit comments

Comments
 (0)