From 61a19e45ccd41b4daf2afa8ace2f73167d87fb3b Mon Sep 17 00:00:00 2001 From: Michael Rowley Date: Wed, 23 Mar 2022 14:54:24 +0000 Subject: [PATCH] Revert "Added more error-handling to ToUpperCase()" This reverts commit ed542582f96541dd90fde52e4f0f07a9b6427ca6. --- src/core/operations/ToUpperCase.mjs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/core/operations/ToUpperCase.mjs b/src/core/operations/ToUpperCase.mjs index 08ffce87..eb0e315a 100644 --- a/src/core/operations/ToUpperCase.mjs +++ b/src/core/operations/ToUpperCase.mjs @@ -37,9 +37,6 @@ class ToUpperCase extends Operation { * @returns {string} */ run(input, args) { - if (!args || args.length === 0) { - throw new OperationException("No capitalization scope was provided."); - } const scope = args[0]; if (scope === "All") { return input.toUpperCase();