Skip to content

Commit 12fc5d4

Browse files
committed
Added line break ↞ [auto-sync from https://github.com/KudoAI/chatgpt.js]
1 parent 567b6a0 commit 12fc5d4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

chatgpt.js/src/chatgpt.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2162,7 +2162,8 @@ const chatgpt = {
21622162
writeCode() { chatgpt.code.write() },
21632163

21642164
_validateArg(spec) {
2165-
if (Array.isArray(spec)) return spec.every(item => this._validateArg(item))
2165+
if (Array.isArray(spec))
2166+
return spec.every(item => this._validateArg(item))
21662167
const { arg, type = 'string' } = spec || {}
21672168
if (!arg)
21682169
return !!console.error('Arg not supplied!')

0 commit comments

Comments
 (0)