StyleCop clean Exts

This commit is contained in:
Matthias Mailänder
2013-08-04 08:31:49 +02:00
parent e6368b2b44
commit 0cfe7e2a06

View File

@@ -204,8 +204,8 @@ namespace OpenRA
// If any duplicates were found, log it and throw a descriptive error
if (dupKeys.Count > 0)
{
string badKeysFormatted = String.Join(", ", dupKeys.Select(p => "{0}: [{1}]".F(logKey(p.Key), String.Join(",", p.Value.ToArray()))).ToArray());
string msg = "{0}, duplicate values found for the following keys: {1}".F(debugName, badKeysFormatted);
var badKeysFormatted = string.Join(", ", dupKeys.Select(p => "{0}: [{1}]".F(logKey(p.Key), string.Join(",", p.Value.ToArray()))).ToArray());
var msg = "{0}, duplicate values found for the following keys: {1}".F(debugName, badKeysFormatted);
Log.Write("debug", msg);
throw new ArgumentException(msg);
}
@@ -240,7 +240,7 @@ namespace OpenRA
var result = 0;
foreach (var b in bits)
if (b)
result |= (1 << i++);
result |= 1 << i++;
else
i++;
if (i > 33)