Skip to content

Commit

Permalink
Updated percy.js
Browse files Browse the repository at this point in the history
Co-authored-by: chinmay-browserstack <[email protected]>
  • Loading branch information
amandeepsingh333 and chinmay-browserstack authored Sep 20, 2024
1 parent 5655d4f commit 7c3bb83
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/core/src/percy.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,13 +515,11 @@ export class Percy {
if (this.suggestionsCallCounter > MAX_SUGGESTION_CALLS) {
if (this.suggestionsCallCounter === MAX_SUGGESTION_CALLS + 1) {
this.log.debug('Rate limit exceeded for Maximum allowed suggestions per build.');
} else {
return;
}
} else {
const suggestionResponse = await this.client.getErrorAnalysis(errors);
this.#displaySuggestionLogs(suggestionResponse, options);
}
return;
}

Check failure on line 520 in packages/core/src/percy.js

View workflow job for this annotation

GitHub Actions / Lint

Trailing spaces not allowed
const suggestionResponse = await this.client.getErrorAnalysis(errors);
this.#displaySuggestionLogs(suggestionResponse, options);
} catch (e) {
// Common error code for Proxy issues
const PROXY_CODES = ['ECONNREFUSED', 'ECONNRESET', 'EHOSTUNREACH'];
Expand Down

0 comments on commit 7c3bb83

Please sign in to comment.