From 671d7d49a404e1001b97f0b02e3feea7b905b86a Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Tue, 30 Jun 2020 19:03:47 +0100 Subject: [PATCH] Just do a + b That's how math works, right? --- api/controllers/arithmeticController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/controllers/arithmeticController.js b/api/controllers/arithmeticController.js index 0fccf51..b80bd87 100644 --- a/api/controllers/arithmeticController.js +++ b/api/controllers/arithmeticController.js @@ -11,7 +11,7 @@ exports.calculate = function(req, res) { }); var operations = { - 'add': function(a,b) { return +a + +b }, + 'add': function(a,b) { return a + b }, 'subtract': function(a,b) { return a - b }, 'multiply': function(a,b) { return a * b }, 'divide': function(a,b) { return a / b },