Skip to content

Commit da2dde5

Browse files
committed
Use string comparison
1 parent 6c5dc62 commit da2dde5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

osu.Server.QueueProcessor/DatabaseAccess.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ public static MySqlConnection GetConnection()
2525
string user = (Environment.GetEnvironmentVariable("DB_USER") ?? "root");
2626
string password = (Environment.GetEnvironmentVariable("DB_PASS") ?? string.Empty);
2727
string name = (Environment.GetEnvironmentVariable("DB_NAME") ?? "osu");
28-
bool pooling = Environment.GetEnvironmentVariable("DB_POOLING") != Boolean.FalseString && Environment.GetEnvironmentVariable("DB_POOLING") != "0";
28+
bool pooling = string.Equals(Environment.GetEnvironmentVariable("DB_POOLING"), Boolean.FalseString, StringComparison.InvariantCultureIgnoreCase)
29+
&& Environment.GetEnvironmentVariable("DB_POOLING") != "0";
2930
int maxPoolSize = int.Parse(Environment.GetEnvironmentVariable("DB_MAX_POOL_SIZE") ?? "100");
3031

3132
string passwordString = string.IsNullOrEmpty(password) ? string.Empty : $"Password={password};";

0 commit comments

Comments
 (0)