File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -238,10 +238,10 @@ class Parameter {
238
238
239
239
// Text type can go to hell
240
240
if ( this . type === "text" ) {
241
- if ( whoami === "header" && object . body > 60 ) throw new Error ( "Header text must be 60 characters or less" ) ;
242
- if ( whoami === "body" && object . body > 1024 ) throw new Error ( "Body text must be 1024 characters or less" ) ;
243
- this [ this . type ] = object . body ;
244
- } else this [ this . type ] = object ;
241
+ if ( whoami === "header" && parameter . body > 60 ) throw new Error ( "Header text must be 60 characters or less" ) ;
242
+ if ( whoami === "body" && parameter . body > 1024 ) throw new Error ( "Body text must be 1024 characters or less" ) ;
243
+ this [ this . type ] = parameter . body ;
244
+ } else this [ this . type ] = parameter ;
245
245
}
246
246
}
247
247
You can’t perform that action at this time.
0 commit comments