Revert "Added more error-handling to ToUpperCase()"
This reverts commit ed542582f96541dd90fde52e4f0f07a9b6427ca6.
This commit is contained in:
parent
0fce9ccced
commit
61a19e45cc
@ -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();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user