code_style: typo in s_extraGrammars
Some checks are pending
Continuous Integration / Build (push) Waiting to run
Continuous Integration / Prepare version string (push) Waiting to run
Continuous Integration / Package (push) Blocked by required conditions

This commit is contained in:
leo 2024-09-21 22:04:50 +08:00
parent 80017d8bd0
commit 0b6ecc0388
No known key found for this signature in database

View file

@ -19,7 +19,7 @@ namespace SourceGit.Models
{
public static class GrammarUtility
{
private static readonly ExtraGrammar[] s_extraGrammas =
private static readonly ExtraGrammar[] s_extraGrammars =
[
new ExtraGrammar("source.toml", ".toml", "toml.json"),
new ExtraGrammar("source.kotlin", ".kotlin", "kotlin.json"),
@ -39,7 +39,7 @@ namespace SourceGit.Models
else if (extension == ".kt" || extension == ".kts")
extension = ".kotlin";
foreach (var grammar in s_extraGrammas)
foreach (var grammar in s_extraGrammars)
{
if (grammar.Extension.Equals(extension, StringComparison.OrdinalIgnoreCase))
return grammar.Scope;
@ -50,7 +50,7 @@ namespace SourceGit.Models
public static IRawGrammar GetGrammar(string scopeName, RegistryOptions reg)
{
foreach (var grammar in s_extraGrammas)
foreach (var grammar in s_extraGrammars)
{
if (grammar.Scope.Equals(scopeName, StringComparison.OrdinalIgnoreCase))
{