Skip to content

Commit

Permalink
Removed useless test in the 'VirtualFSManager' class
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienCastex committed Jun 9, 2017
1 parent 7c4b44f commit c4dc8db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/manager/VirtualFSManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/manager/VirtualFSManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c4dc8db

Please sign in to comment.