File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -183,8 +183,7 @@ Result<std::vector<LuaDiagnosticInfo>> LuaCodeFormat::SpellCheck(const std::stri
183183
184184 LuaStyle style = GetStyle (uri);
185185
186- LuaDiagnosticStyle diagnosticStyle;
187- DiagnosticBuilder diagnosticBuilder (style, diagnosticStyle);
186+ DiagnosticBuilder diagnosticBuilder (style, _diagnosticStyle);
188187 _spellChecker.SetCustomDictionary (tempDict);
189188 diagnosticBuilder.SpellCheck (t, _spellChecker);
190189 return MakeDiagnosticInfo (diagnosticBuilder.GetDiagnosticResults (t), file);
@@ -207,8 +206,7 @@ Result<std::vector<LuaDiagnosticInfo>> LuaCodeFormat::NameStyleCheck(const std::
207206
208207 LuaStyle style = GetStyle (uri);
209208
210- LuaDiagnosticStyle diagnosticStyle;
211- DiagnosticBuilder diagnosticBuilder (style, diagnosticStyle);
209+ DiagnosticBuilder diagnosticBuilder (style, _diagnosticStyle);
212210
213211 diagnosticBuilder.NameStyleCheck (t);
214212 return MakeDiagnosticInfo (diagnosticBuilder.GetDiagnosticResults (t), file);
You can’t perform that action at this time.
0 commit comments