Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Hsu <kennethhsu@gmail.com>2020-11-16 02:11:01 +0300
committerKenneth Hsu <kennethhsu@gmail.com>2020-11-16 02:11:01 +0300
commit61056dd14cb9be5ecc3f8021be2873e833f77cb1 (patch)
treebdda124c19e0b50d074d01a7aa5c924c214292cd /Duplicati/Server
parent7d1d2563150bd2ff47e93a28a985bd9b8736444c (diff)
Clean up indentation and formatting.
Diffstat (limited to 'Duplicati/Server')
-rw-r--r--Duplicati/Server/Runner.cs16
1 files changed, 6 insertions, 10 deletions
diff --git a/Duplicati/Server/Runner.cs b/Duplicati/Server/Runner.cs
index 56bb6abb0..38686d6af 100644
--- a/Duplicati/Server/Runner.cs
+++ b/Duplicati/Server/Runner.cs
@@ -796,16 +796,12 @@ namespace Duplicati.Server
if (r.FilesWithError > 0 || r.Warnings.Any() || r.Errors.Any())
{
Program.DataConnection.RegisterNotification(
- r.FilesWithError == 0 && !r.Errors.Any() ? NotificationType.Warning : NotificationType.Error,
- backup.IsTemporary ?
- "Warning" : string.Format("Warning while running {0}", backup.Name),
- r.FilesWithError > 0 ?
- string.Format("Errors affected {0} file(s) ", r.FilesWithError) :
- (r.Errors.Any() ?
- string.Format("Got {0} error(s)", r.Errors.Count()) :
- string.Format("Got {0} warning(s)", r.Warnings.Count())
- )
- ,
+ r.FilesWithError == 0 && !r.Errors.Any() ? NotificationType.Warning : NotificationType.Error,
+ backup.IsTemporary ? "Warning" : string.Format("Warning while running {0}", backup.Name),
+ r.FilesWithError > 0 ? string.Format("Errors affected {0} file(s) ", r.FilesWithError) :
+ (
+ r.Errors.Any() ? string.Format("Got {0} error(s)", r.Errors.Count()) : string.Format("Got {0} warning(s)", r.Warnings.Count())
+ ),
null,
backup.ID,
"backup:show-log",