Skip to content

Commit c11c759

Browse files
authored
refactor: code for consistency (#3795)
1 parent 596c042 commit c11c759

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,8 @@ class Server {
424424
}
425425
// CLI pass options as array, we should normalize them
426426
else if (
427-
Array.isArray(this.options.allowedHosts) &&
428-
this.options.allowedHosts.includes("all")
427+
Array.isArray(options.allowedHosts) &&
428+
options.allowedHosts.includes("all")
429429
) {
430430
options.allowedHosts = "all";
431431
}

0 commit comments

Comments
 (0)