Skip to content

Commit

Permalink
refactor: remove redundant if statements (#4158)
Browse files Browse the repository at this point in the history
Remove redundant IF statements
  • Loading branch information
fecqs committed Jan 11, 2022
1 parent e535f25 commit c1907f1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/Server.js
Expand Up @@ -1479,10 +1479,6 @@ class Server {
options.static = [getStaticItem(options.static)];
} else if (Array.isArray(options.static)) {
options.static = options.static.map((item) => {
if (typeof item === "string") {
return getStaticItem(item);
}

return getStaticItem(item);
});
} else {
Expand Down

0 comments on commit c1907f1

Please sign in to comment.