diff options
| author | telans <telans@protonmail.com> | 2020-06-20 20:35:29 +1200 |
|---|---|---|
| committer | telans <telans@protonmail.com> | 2020-06-20 20:35:29 +1200 |
| commit | 98db8f72e01b608e6c384ecf5b107fc2d105b652 (patch) | |
| tree | 8099ba47507cfa9f1ff9b6e456cf854108298a63 /RSSDP/IEnumerableExtensions.cs | |
| parent | 8e3d8748021fe0336e2fc1211810cc9bbe2c8850 (diff) | |
fix SA1503 for one line if statements
Diffstat (limited to 'RSSDP/IEnumerableExtensions.cs')
| -rw-r--r-- | RSSDP/IEnumerableExtensions.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/RSSDP/IEnumerableExtensions.cs b/RSSDP/IEnumerableExtensions.cs index 371454893..1f0daad3e 100644 --- a/RSSDP/IEnumerableExtensions.cs +++ b/RSSDP/IEnumerableExtensions.cs @@ -8,8 +8,15 @@ namespace Rssdp.Infrastructure { public static IEnumerable<T> SelectManyRecursive<T>(this IEnumerable<T> source, Func<T, IEnumerable<T>> selector) { - if (source == null) throw new ArgumentNullException(nameof(source)); - if (selector == null) throw new ArgumentNullException(nameof(selector)); + if (source == null) + { + throw new ArgumentNullException(nameof(source)); + } + + if (selector == null) + { + throw new ArgumentNullException(nameof(selector)); + } return !source.Any() ? source : source.Concat( |
