Run dotnet format on solution (#7145)

This commit is contained in:
Cory
2020-02-08 20:35:16 -06:00
committed by GitHub
parent 2fe1e03da9
commit c12da520a4
228 changed files with 978 additions and 889 deletions

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Globalization;
@@ -235,8 +235,9 @@ namespace Jackett.Common.Indexers.Abstract
var torrentId = torrent["torrentId"];
var time = (string)torrent["time"];
if (!string.IsNullOrEmpty(time)) {
release.PublishDate = DateTime.ParseExact(time+" +0000", "yyyy-MM-dd HH:mm:ss zzz", CultureInfo.InvariantCulture);
if (!string.IsNullOrEmpty(time))
{
release.PublishDate = DateTime.ParseExact(time + " +0000", "yyyy-MM-dd HH:mm:ss zzz", CultureInfo.InvariantCulture);
}
var flags = new List<string>();
@@ -249,7 +250,7 @@ namespace Jackett.Common.Indexers.Abstract
if (!string.IsNullOrEmpty(encoding))
flags.Add(encoding);
if(torrent["hasLog"] != null && (bool)torrent["hasLog"])
if (torrent["hasLog"] != null && (bool)torrent["hasLog"])
{
var logScore = (string)torrent["logScore"];
flags.Add("Log (" + logScore + "%)");