Skip to content

Commit c7ae71a

Browse files
committed
flip ternary
1 parent 6e1bee4 commit c7ae71a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elastic.Markdown/Myst/InlineParsers/Substitution/SubstitutionParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public override bool Match(InlineProcessor processor, ref StringSlice slice)
211211

212212
if (!found)
213213
// We temporarily diagnose variable spaces as hints. We used to not read this at all.
214-
processor.Emit(key.Contains(' ') ? Severity.Error : Severity.Hint, line + 1, column + 3, substitutionLeaf.Span.Length - 3, $"Substitution key {{{key}}} is undefined");
214+
processor.Emit(key.Contains(' ') ? Severity.Hint : Severity.Error, line + 1, column + 3, substitutionLeaf.Span.Length - 3, $"Substitution key {{{key}}} is undefined");
215215
else
216216
{
217217
List<SubstitutionMutation>? mutations = null;

0 commit comments

Comments
 (0)