Skip to content

Commit

Permalink
Fixed misspelling
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienCastex committed May 12, 2017
1 parent 482b0c9 commit 62badc8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/manager/PhysicalFSManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var PhysicalFSManager = (function () {
};
PhysicalFSManager.prototype.serialize = function (resource) {
if (!resource.realPath)
throw new Error('Unrocognized resource');
throw new Error('Unrecognized resource');
return { realPath: resource.realPath, isFile: resource.constructor === PhysicalResource_1.PhysicalFile };
};
PhysicalFSManager.prototype.unserialize = function (serializedResource) {
Expand All @@ -21,7 +21,7 @@ var PhysicalFSManager = (function () {
else
return new PhysicalResource_1.PhysicalFolder(serializedResource.realPath, null, this);
}
throw new Error('Unrocognized resource');
throw new Error('Unrecognized resource');
};
PhysicalFSManager.prototype.newResource = function (fullPath, name, type, parent) {
throw new Error('Not implemented yet');
Expand Down
4 changes: 2 additions & 2 deletions lib/manager/VirtualFSManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ var VirtualFSManager = (function () {
rs.content = serializedResource.content;
return rs;
}
throw new Error('Unrocognized resource');
throw new Error('Unrecognized resource');
};
VirtualFSManager.prototype.newResource = function (fullPath, name, type, parent) {
if (type.isDirectory)
return new VirtualResource_1.VirtualFolder(name, parent, this);
if (type.isFile)
return new VirtualResource_1.VirtualFile(name, parent, this);
throw new Error('Unrocognized type');
throw new Error('Unrecognized type');
};
return VirtualFSManager;
}());
Expand Down
4 changes: 2 additions & 2 deletions src/manager/PhysicalFSManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class PhysicalFSManager implements FSManager
serialize(resource : any) : object
{
if(!resource.realPath)
throw new Error('Unrocognized resource');
throw new Error('Unrecognized resource');

return { realPath: resource.realPath, isFile: resource.constructor === PhysicalFile };
}
Expand All @@ -29,7 +29,7 @@ export class PhysicalFSManager implements FSManager
return new PhysicalFolder(serializedResource.realPath, null, this);
}

throw new Error('Unrocognized resource');
throw new Error('Unrecognized resource');
}

newResource(fullPath : string, name : string, type : ResourceType, parent : IResource) : IResource
Expand Down
4 changes: 2 additions & 2 deletions src/manager/VirtualFSManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class VirtualFSManager implements FSManager
return rs;
}

throw new Error('Unrocognized resource');
throw new Error('Unrecognized resource');
}

newResource(fullPath : string, name : string, type : ResourceType, parent : IResource) : IResource
Expand All @@ -54,6 +54,6 @@ export class VirtualFSManager implements FSManager
if(type.isFile)
return new VirtualFile(name, parent, this);

throw new Error('Unrocognized type');
throw new Error('Unrecognized type');
}
}

0 comments on commit 62badc8

Please sign in to comment.