| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -104,13 +104,12 @@ function startCLI(args, flags = [], spawnOpts = {}) { | |||
| 104 | 104 | }, | |
| 105 | 105 | ||
| 106 | 106 | async waitForInitialBreak() { | |
| 107 | - return this.waitFor(/break (?:on start )?in/i) | ||
| 108 | - .then(async () => { | ||
| 109 | - if (isPreBreak(this.output)) { | ||
| 110 | - return this.command('next', false) | ||
| 111 | - .then(() => this.waitFor(/break in/)); | ||
| 112 | - } | ||
| 113 | - }); | ||
| 107 | + await this.waitFor(/break (?:on start )?in/i); | ||
| 108 | + | ||
| 109 | + if (isPreBreak(this.output)) { | ||
| 110 | + await this.command('next', false); | ||
| 111 | + return this.waitFor(/break in/); | ||
| 112 | + } | ||
| 114 | 113 | }, | |
| 115 | 114 | ||
| 116 | 115 | get breakInfo() { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments