Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
dubzzz authored Dec 23, 2024
1 parent ae56b15 commit e98d821
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ function distributeCoins(availableCoins, payslips) {
function parser(answer: string): unknown[] | undefined {
const lines = answer.split('\n');
if (lines.length !== 2) {
throw new Error('Expected to receive two lines one for the amounts (payslips) to be paid, another one for the coins');
throw new Error(
'Expected to receive two lines one for the amounts (payslips) to be paid, another one for the coins',
);
}
if (lines[0].at(-1) !== '?') {
throw new Error(`First line must end by ?, got: ${lines[0]}.`);
Expand Down

0 comments on commit e98d821

Please sign in to comment.