Skip to content

Commit af76be3

Browse files
webJoseCopilot
andauthored
chore: Use string interpolation in warning message
Co-authored-by: Copilot <[email protected]>
1 parent ec50cdf commit af76be3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/core/LocationFull.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class LocationFull extends LocationLite {
6060
}
6161
} else {
6262
if (!isConformantState(event.state)) {
63-
logger.warn("Warning: Non-conformant state object passed to history." + method + "State. Previous state will prevail.");
63+
logger.warn(`Warning: Non-conformant state object passed to history.${method}State. Previous state will prevail.`);
6464
event.state = this.#innerState.state;
6565
}
6666
const navFn = method === 'push' ? this.#originalPushState : this.#originalReplaceState;

0 commit comments

Comments
 (0)