Skip to content

Commit

Permalink
Infrastructure Preparation 282
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiizor committed Jun 22, 2024
1 parent ec8e65c commit f77869c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions src/Skylark/Helper/Converter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -605,14 +605,7 @@ private static bool Check(object Text, object Type)
/// <returns></returns>
private static bool Check(string Text, string Type)
{
if (Text == Type || Text.ToUpper() == Type || Text.ToUpperInvariant() == Type || Text == Type.ToLower() || Text == Type.ToLowerInvariant())
{
return true;
}
else
{
return false;
}
return Text.Equals(Type, StringComparison.Ordinal) || Text.Equals(Type, StringComparison.OrdinalIgnoreCase) || Text.Equals(Type, StringComparison.CurrentCulture) || Text.Equals(Type, StringComparison.CurrentCultureIgnoreCase) || Text.Equals(Type, StringComparison.InvariantCulture) || Text.Equals(Type, StringComparison.InvariantCultureIgnoreCase);
}
}
}
2 changes: 1 addition & 1 deletion src/Skylark/Skylark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// Creator: Taiizor
// Website: www.Vegalya.com
// Created: 03.Jan.2023
// Changed: 10.Jun.2024
// Changed: 22.Jun.2024
// Version: 3.1.4.4
//
// |---------DO-NOT-REMOVE---------|
Expand Down

0 comments on commit f77869c

Please sign in to comment.