[backend] Fix code cleanup rules (and build)

This commit is contained in:
Laura Hausmann 2024-02-03 03:41:00 +01:00
parent 8e2a116ad9
commit 17884c4975
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
2 changed files with 64 additions and 12 deletions

View file

@ -21,22 +21,14 @@ public static class StringExtensions {
[SuppressMessage("ReSharper", "StringCompareToIsCultureSpecific")] [SuppressMessage("ReSharper", "StringCompareToIsCultureSpecific")]
public static class ProjectableStringExtensions { public static class ProjectableStringExtensions {
[Projectable] [Projectable]
public static bool IsLessThan(this string a, string b) { public static bool IsLessThan(this string a, string b) => a.CompareTo(b) < 0;
return a.CompareTo(b) < 0;
}
[Projectable] [Projectable]
public static bool IsLessOrEqualTo(this string a, string b) { public static bool IsLessOrEqualTo(this string a, string b) => a.CompareTo(b) <= 0;
return a.CompareTo(b) <= 0;
}
[Projectable] [Projectable]
public static bool IsGreaterThan(this string a, string b) { public static bool IsGreaterThan(this string a, string b) => a.CompareTo(b) > 0;
return a.CompareTo(b) > 0;
}
[Projectable] [Projectable]
public static bool IsGreaterOrEqualTo(this string a, string b) { public static bool IsGreaterOrEqualTo(this string a, string b) => a.CompareTo(b) >= 0;
return a.CompareTo(b) >= 0;
}
} }

File diff suppressed because one or more lines are too long