Skip to content

Commit 0c96f33

Browse files
committed
Fix-[API/Folders:Read] 🤷🏻‍♂️
1 parent 9d432e0 commit 0c96f33

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/api/folder/read.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ exports.readFiles = async function (instance, component, route, files) {
4343
throw new Error(0, 'E_INVALIDFILENAME', 'The file name format is invalid');
4444
} else {
4545
instance.insertComponent(filenameInfo.name,
46-
await new Reader().readCode(filenameInfo.ext, filename), component);
46+
await Reader.readCode(filenameInfo.ext, filename), component);
4747
}
4848
}
4949
}

0 commit comments

Comments
 (0)