prut
This commit is contained in:
2
server/utils/parseArgs.js
Normal file → Executable file
2
server/utils/parseArgs.js
Normal file → Executable file
@@ -5,7 +5,7 @@
|
||||
* @returns {(string|number)[]} Command arguments
|
||||
*/
|
||||
export function parseArgs(cmdString) {
|
||||
if (typeof cmdString === "string") {
|
||||
if (typeof cmdString !== "string") {
|
||||
throw new Error("Expected string. GoT a finger in the eye instead");
|
||||
}
|
||||
const args = [];
|
||||
|
||||
Reference in New Issue
Block a user