Skip to content

Commit

Permalink
Fix definition provider empty result
Browse files Browse the repository at this point in the history
  • Loading branch information
dzonatan committed Mar 23, 2017
1 parent 2d5af40 commit cc80a64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/angular-html-definition-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ export class AngularHtmlDefinitionProvider implements DefinitionProvider {
/\*\w+=\"(.*)\"/g
];
let expressionMatch: string = utils.parseByLocationRegexps(lineText, position.character, regexps);
if (!expressionMatch) return false;
if (!expressionMatch) return null;

let range = document.getWordRangeAtPosition(position);
if (!range) return false;
if (!range) return null;

let propertyName = document.getText(range);

Expand Down

0 comments on commit cc80a64

Please sign in to comment.