Skip to content

Commit 56e31db

Browse files
authored
Fix basic pathParser plugin functionality (#502)
1 parent 04a4a32 commit 56e31db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/pathParser/pathParser.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ function testRule(pattern, parts) {
322322
}
323323

324324
var matchedParts = [];
325+
var subMatches;
325326
for (var i = 0; i < pattern.length; i++) {
326327
if ((subMatches = testPattern(pattern[i], parts[i])) == null) {
327328
return null;
@@ -653,7 +654,7 @@ function tryGetTag(tag) {
653654

654655
var result = gql.Do(query, variables);
655656
if (!result.findTags || result.findTags.count == 0) {
656-
return;
657+
return null;
657658
}
658659

659660
return result.findTags.tags[0].id;

0 commit comments

Comments
 (0)