From c5caa98ce929a7170fc5d521322416d4afeb5a4e Mon Sep 17 00:00:00 2001 From: wkwk <12408-wkwk@users.norepy.gitgud.io> Date: Wed, 8 Apr 2020 03:53:13 -0500 Subject: [PATCH] Remove more debugger calls --- src/Corporation/corporate.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Corporation/corporate.js b/src/Corporation/corporate.js index 9fd85d79768..6028170bdf7 100644 --- a/src/Corporation/corporate.js +++ b/src/Corporation/corporate.js @@ -264,7 +264,7 @@ App.Corporate.Init = function() { super(); this._const.category = App.Corporate.maintenance.divisionCategories[categoryId]; - if(this._const.category == null) { debugger; throw new "Invalid category id: " + categoryId; } + if(this._const.category == null) { throw new "Invalid category id: " + categoryId; } this._var.divisions = []; } addDivision(division) { @@ -320,7 +320,7 @@ App.Corporate.Init = function() { return this._var.operatingCost; } set operatingCost(value) { - if(!Number.isFinite(value)) { debugger; throw "Operating cost wasn't finite "; } + if(!Number.isFinite(value)) { throw "Operating cost wasn't finite "; } this._var.operatingCost = Math.trunc(value); } get overhead() { @@ -665,7 +665,6 @@ App.Corporate.Init = function() { if(!Number.isFinite(cost)) { throw "The cost provided was not real"; } cost = Math.trunc(cost); if(weekLedger == null) { - debugger; throw "No weekLedger provided"; } this.dividend += cost; -- GitLab