Skip to content

Commit

Permalink
chore: tweak code
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Mar 2, 2023
1 parent 56a179f commit 15ababc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/astro/src/cli/check/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,8 @@ class CheckServer {
*/
public async watch(): Promise<CheckResult> {
await this.#checkAllFiles();
return this.#watch()
.then(() => CheckResult.Listen)
.catch(() => CheckResult.ExitWithError);
await this.#watch();
return CheckResult.Listen;
}

/**
Expand Down

0 comments on commit 15ababc

Please sign in to comment.