diff --git a/lib/manager/VirtualFSManager.js b/lib/manager/VirtualFSManager.js index e00245df..577715d7 100644 --- a/lib/manager/VirtualFSManager.js +++ b/lib/manager/VirtualFSManager.js @@ -31,7 +31,7 @@ var VirtualFSManager = (function () { if (obj.type.isFile) { var rs = new VirtualFile_1.VirtualFile(data.name, null, this); if (data.content) { - rs.content = data.content ? data.content.map(function (a) { return new Buffer(a); }) : data.content; + rs.content = data.content.map(function (a) { return new Buffer(a); }); rs.len = data.len; } rs.dateCreation = data.dateCreation; diff --git a/src/manager/VirtualFSManager.ts b/src/manager/VirtualFSManager.ts index 40650f1c..fe5c4a58 100644 --- a/src/manager/VirtualFSManager.ts +++ b/src/manager/VirtualFSManager.ts @@ -42,7 +42,7 @@ export class VirtualFSManager implements FSManager const rs = new VirtualFile(data.name, null, this); if(data.content) { - rs.content = data.content ? data.content.map((a) => new Buffer(a)) : data.content; + rs.content = data.content.map((a) => new Buffer(a)); rs.len = data.len; } rs.dateCreation = data.dateCreation;