Revert "Added more error-handling to ToUpperCase()"

This reverts commit ed542582f9.
This commit is contained in:
Michael Rowley 2022-03-23 14:54:24 +00:00
parent 0fce9ccced
commit 61a19e45cc

View file

@ -37,9 +37,6 @@ class ToUpperCase extends Operation {
* @returns {string} * @returns {string}
*/ */
run(input, args) { run(input, args) {
if (!args || args.length === 0) {
throw new OperationException("No capitalization scope was provided.");
}
const scope = args[0]; const scope = args[0];
if (scope === "All") { if (scope === "All") {
return input.toUpperCase(); return input.toUpperCase();