Enhance core API

- Add trim function to core API
- Minor bug fix
This commit is contained in:
lxsang
2020-06-06 18:41:43 +02:00
parent 598c11b2c3
commit edbffeb2b8
4 changed files with 42 additions and 41 deletions

View File

@ -1147,10 +1147,7 @@ namespace OS {
*/
_rd(t: string): Promise<any> {
return new Promise((resolve, reject) => {
return resolve({
result: this.cache,
error: false,
});
return resolve(this.cache);
});
}