Merge pull request #5982 from Bond-009/nullable

This commit is contained in:
Bond-009
2021-05-06 23:33:41 +02:00
committed by GitHub
44 changed files with 145 additions and 165 deletions

View File

@@ -1,5 +1,3 @@
#nullable enable
using System;
using System.Security.Cryptography;
using System.Text;

View File

@@ -1,5 +1,3 @@
#nullable enable
using System.Collections.Generic;
namespace MediaBrowser.Common.Extensions

View File

@@ -17,7 +17,7 @@ namespace MediaBrowser.Common.Extensions
{
return (context.Connection.LocalIpAddress == null
&& context.Connection.RemoteIpAddress == null)
|| context.Connection.LocalIpAddress.Equals(context.Connection.RemoteIpAddress);
|| Equals(context.Connection.LocalIpAddress, context.Connection.RemoteIpAddress);
}
/// <summary>

View File

@@ -1,5 +1,3 @@
#nullable enable
using System;
namespace MediaBrowser.Common.Extensions

View File

@@ -1,5 +1,3 @@
#nullable enable
using System;
using System.Diagnostics;
using System.Threading;

View File

@@ -1,4 +1,3 @@
#nullable enable
#pragma warning disable CS1591
using System;

View File

@@ -1,5 +1,3 @@
#nullable enable
using System;
namespace MediaBrowser.Common.Extensions

View File

@@ -1,5 +1,3 @@
#nullable enable
using System;
using System.Collections.Generic;

View File

@@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
#nullable enable
#pragma warning disable CS1591
#pragma warning disable CA1034
using System;

View File

@@ -1,5 +1,3 @@
#nullable enable
using System.Collections.Generic;
using System.IO;
using System.Linq;