Skip to content

Commit

Permalink
refactor: code for consistency (#3795)
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Sep 5, 2021
1 parent 596c042 commit c11c759
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Server.js
Expand Up @@ -424,8 +424,8 @@ class Server {
}
// CLI pass options as array, we should normalize them
else if (
Array.isArray(this.options.allowedHosts) &&
this.options.allowedHosts.includes("all")
Array.isArray(options.allowedHosts) &&
options.allowedHosts.includes("all")
) {
options.allowedHosts = "all";
}
Expand Down

0 comments on commit c11c759

Please sign in to comment.