diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-03-09 01:28:21 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-03-09 01:28:21 +0100 |
| commit | 5241bd41ef4917e0a3071f961f08dd2eeec5a5dd (patch) | |
| tree | 46ea0263532c56e088db31a85f40fbaedf9ea0e7 /Emby.Naming/Video/VideoResolver.cs | |
| parent | 3c46f10e3d120dd76f5d3455dae710a900d68bc1 (diff) | |
Add code analysis attributes where appropriate
Diffstat (limited to 'Emby.Naming/Video/VideoResolver.cs')
| -rw-r--r-- | Emby.Naming/Video/VideoResolver.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Naming/Video/VideoResolver.cs b/Emby.Naming/Video/VideoResolver.cs index 619d1520e4..79a6da8f7b 100644 --- a/Emby.Naming/Video/VideoResolver.cs +++ b/Emby.Naming/Video/VideoResolver.cs @@ -1,4 +1,5 @@ using System; +using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using Emby.Naming.Common; @@ -146,7 +147,7 @@ namespace Emby.Naming.Video /// <param name="name">Raw name.</param> /// <param name="newName">Clean name.</param> /// <returns>True if cleaning of name was successful.</returns> - public bool TryCleanString(string name, out ReadOnlySpan<char> newName) + public bool TryCleanString([NotNullWhen(true)] string? name, out ReadOnlySpan<char> newName) { return CleanStringParser.TryClean(name, _options.CleanStringRegexes, out newName); } |
