Coordinator: Use range operators to fix the errors reported by an analyzer.
MODIFY
WalletWasabi/CoinJoin/Coordinator/Coordinator.cs
WalletWasabi/CoinJoin/Coordinator/Coordinator.cs
@@ -61,7 +61,7 @@ namespace WalletWasabi.CoinJoin.Coordinator
var logEntry = ex is RPCException rpce && rpce.RPCCode == RPCErrorCode.RPC_INVALID_ADDRESS_OR_KEY
? $"CoinJoins file contains invalid transaction ID {line}"
- : $"CoinJoins file got corrupted. Deleting offending line \"{line.Substring(0, 20)}\".";
+ : $"CoinJoins file got corrupted. Deleting offending line \"{line[..20]}\".";
Logger.LogWarning($"{logEntry}. {ex.GetType()}: {ex.Message}");
}
@@ -82,7 +82,7 @@ namespace WalletWasabi.CoinJoin.Coordinator
var logEntry = ex is RPCException rpce && rpce.RPCCode == RPCErrorCode.RPC_INVALID_ADDRESS_OR_KEY
? $"CoinJoins file contains invalid transaction ID {line}"
- : $"CoinJoins file got corrupted. Deleting offending line \"{line.Substring(0, 20)}\".";
+ : $"CoinJoins file got corrupted. Deleting offending line \"{line[..20]}\".";
Logger.LogWarning($"{logEntry}. {ex.GetType()}: {ex.Message}");
}

Coordinator: Use range operators to fix the errors reported by an analyzer.