Skip to content

Commit e0f56eb

Browse files
authored
Fixed start method failure on started server.
Fixed a typo in the `start` method that threw an exception on an attempt of starting already running server.
1 parent 102c420 commit e0f56eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class StaticServer {
5858

5959
start() {
6060
if( this.running ){
61-
return new new Promise((resolve, reject) => {
61+
return new Promise((resolve, reject) => {
6262
resolve(this.origin);
6363
});
6464
}

0 commit comments

Comments
 (0)