Allow public SecretMasker constructor to be called with a null IEnumerable<ValueEncoder>

This commit is contained in:
John Wesley Walker III
2023-04-06 10:46:35 +02:00
committed by GitHub
parent 157e03616e
commit afcca9bfa4

View File

@@ -14,7 +14,7 @@ namespace GitHub.DistributedTask.Logging
{
m_originalValueSecrets = new HashSet<ValueSecret>();
m_regexSecrets = new HashSet<RegexSecret>();
m_valueEncoders = new HashSet<ValueEncoder>(encoders);
m_valueEncoders = new HashSet<ValueEncoder>(encoders ?? Enumerable.Empty<ValueEncoder>());
m_valueSecrets = new HashSet<ValueSecret>();
}