0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fixed linting errors

refs ac094821c8

- stray console.logs
This commit is contained in:
Kevin Ansfield 2021-06-21 18:15:17 +01:00
parent ac094821c8
commit a8c05f4be7

View file

@ -615,7 +615,6 @@ export default Controller.extend({
captureMessage('Saving post required multiple attempts', {attempts, totalSeconds}); captureMessage('Saving post required multiple attempts', {attempts, totalSeconds});
} }
} catch (error) { } catch (error) {
console.log('caught error', {error});
attempts += 1; attempts += 1;
if (isServerUnreachableError(error) && attempts < maxAttempts) { if (isServerUnreachableError(error) && attempts < maxAttempts) {
@ -628,10 +627,8 @@ export default Controller.extend({
} }
// simulate a validation error so we don't end up on a 500 screen // simulate a validation error so we don't end up on a 500 screen
console.log('throwing undefined');
throw undefined; throw undefined;
} else { } else {
console.log('throwing error', isServerUnreachableError(error), error);
throw error; throw error;
} }
} }