Skip to content

Commit 0bdbcfa

Browse files
authored
fix(hmr): remove redundant condition check (#5828)
1 parent ea5491b commit 0bdbcfa

File tree

1 file changed

+2
-6
lines changed
  • packages/core/src/client

1 file changed

+2
-6
lines changed

packages/core/src/client/hmr.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ export const registerOverlay = (
5353
// Successful compilation.
5454
function handleSuccess() {
5555
clearOutdatedErrors();
56-
5756
hasCompileErrors = false;
58-
5957
tryApplyUpdates();
6058
}
6159

@@ -111,10 +109,8 @@ const handleApplyUpdates = (
111109
return;
112110
}
113111

114-
if (isUpdateAvailable()) {
115-
// While we were updating, there was a new update! Do it again.
116-
tryApplyUpdates();
117-
}
112+
// While we were updating, there was a new update! Do it again.
113+
tryApplyUpdates();
118114
};
119115

120116
// Attempt to update code on the fly, fall back to a hard reload.

0 commit comments

Comments
 (0)