Skip to content

Commit aeabaee

Browse files
committed
Allow empty string parameter
1 parent 7584ed8 commit aeabaee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "talkops",
33
"description": "TalkOps SDK",
4-
"version": "2.13.0",
4+
"version": "2.13.1",
55
"author": "bierdok",
66
"license": "MIT",
77
"main": "index.mjs",

parameter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ export default class Parameter {
6969
* @returns {Parameter} The updated parameter instance.
7070
*/
7171
setDefaultValue(defaultValue) {
72-
if (typeof defaultValue !== 'string' || defaultValue.trim() === '') {
73-
throw new Error('defaultValue must be a non-empty string.')
72+
if (typeof defaultValue !== 'string') {
73+
throw new Error('defaultValue must be a string.')
7474
}
7575
this.#defaultValue = defaultValue
7676
return this

0 commit comments

Comments
 (0)