Skip to content

Commit

Permalink
Solution v2
Browse files Browse the repository at this point in the history
  • Loading branch information
DariuszBPoz committed Feb 12, 2024
1 parent 3a06540 commit e0039cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"license": "GPL-3.0",
"devDependencies": {
"@mate-academy/eslint-config": "*",
"@mate-academy/scripts": "^1.7.0",
"@mate-academy/scripts": "^1.2.8",
"eslint": "^5.16.0",
"eslint-plugin-jest": "^22.4.1",
"eslint-plugin-node": "^8.0.1",
Expand Down
8 changes: 4 additions & 4 deletions src/makeRobotAccountant.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use strict';
"use strict";

/**
*
Expand All @@ -8,12 +8,12 @@
function makeRobotAccountant() {
let count = 0;

return function(a) {
return function(b) {
return function (a) {
return function (b) {
count++;

if (count % 2 === 0 && count > 3) {
return 'Bzzz... Error!';
return "Bzzz... Error!";
}

return a + b;
Expand Down

0 comments on commit e0039cb

Please sign in to comment.