diff options
author | Kenneth Hsu <kennethhsu@gmail.com> | 2020-11-16 02:11:01 +0300 |
---|---|---|
committer | Kenneth Hsu <kennethhsu@gmail.com> | 2020-11-16 02:11:01 +0300 |
commit | 61056dd14cb9be5ecc3f8021be2873e833f77cb1 (patch) | |
tree | bdda124c19e0b50d074d01a7aa5c924c214292cd /Duplicati/Server | |
parent | 7d1d2563150bd2ff47e93a28a985bd9b8736444c (diff) |
Clean up indentation and formatting.
Diffstat (limited to 'Duplicati/Server')
-rw-r--r-- | Duplicati/Server/Runner.cs | 16 |
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",
|