Skip to content

Commit

Permalink
Fix comment-based help snippet (#726)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmholt authored Aug 18, 2018
1 parent df57cb6 commit 1cdfd75
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1125,8 +1125,8 @@ protected async Task HandleCommentHelpRequest(
helpLocation));

var help = analysisResults?.FirstOrDefault()?.Correction?.Edits[0].Text;
result.Content = help != null
? (lines ?? ScriptFile.GetLines(funcText)).ToArray()
result.Content = help != null
? (lines ?? ScriptFile.GetLines(help)).ToArray()
: null;

if (helpLocation != null &&
Expand Down

0 comments on commit 1cdfd75

Please sign in to comment.