Skip to content

Commit

Permalink
Fix future sketchy-null errors after bug fix in '@flow strict' files
Browse files Browse the repository at this point in the history
Reviewed By: wcheng86

Differential Revision: D9599872

fbshipit-source-id: dabcfd6fb7b6ec5a13801e84fe55d7d3c7ba9adb
  • Loading branch information
gkz authored and facebook-github-bot committed Aug 31, 2018
1 parent 1c4533d commit 85e9afc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions server/util/debugger-ui/deltaUrlToBlobUrl.js
Expand Up @@ -41,12 +41,16 @@

// If nothing changed, avoid recreating a bundle blob by reusing the
// previous one.
if (deltaPatcher.getLastNumModifiedFiles() === 0 && cachedBundle) {
if (
deltaPatcher.getLastNumModifiedFiles() === 0 &&
cachedBundle != null &&
cachedBundle !== ''
) {
return cachedBundle;
}

// Clean up the previous bundle URL to not leak memory.
if (cachedBundle) {
if (cachedBundle != null && cachedBundle !== '') {
URL.revokeObjectURL(cachedBundle);
}

Expand Down

0 comments on commit 85e9afc

Please sign in to comment.