Skip to content

Commit 6541100

Browse files
committed
Simplify source path creation.
1 parent ede1027 commit 6541100

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/SourcePathHandler.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ export default class SourcePathHandler {
77
}
88

99
handle() {
10-
return source => this._createSourcePathFactory(source);
11-
}
12-
13-
_createSourcePathFactory(source) {
14-
return new PathFactory({
10+
return source => new PathFactory({
1511
handlers: { ...defaultHandlers },
1612
resolvers: [new SubjectPathResolver(this._paths, source)],
1713
}).create();

0 commit comments

Comments
 (0)