Skip to content

Commit

Permalink
Simplify source path creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenVerborgh committed Oct 3, 2019
1 parent ede1027 commit 6541100
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/SourcePathHandler.js
Expand Up @@ -7,11 +7,7 @@ export default class SourcePathHandler {
}

handle() {
return source => this._createSourcePathFactory(source);
}

_createSourcePathFactory(source) {
return new PathFactory({
return source => new PathFactory({
handlers: { ...defaultHandlers },
resolvers: [new SubjectPathResolver(this._paths, source)],
}).create();
Expand Down

0 comments on commit 6541100

Please sign in to comment.