File tree Expand file tree Collapse file tree 4 files changed +3
-10
lines changed
Expand file tree Collapse file tree 4 files changed +3
-10
lines changed Original file line number Diff line number Diff line change 1- using System ;
2- using System . IO ;
31using System . IO . Compression ;
42using ByteMeBackup . Configuration ;
53using ByteMeBackup . Services ;
@@ -138,7 +136,7 @@ await LogAsync($"""
138136 }
139137 }
140138
141- private async Task LogAsync ( string message , string consoleMarkup = null )
139+ private async Task LogAsync ( string message , string consoleMarkup = null ! )
142140 {
143141 if ( ! string . IsNullOrWhiteSpace ( consoleMarkup ) )
144142 AnsiConsole . Markup ( consoleMarkup + "\n " ) ;
Original file line number Diff line number Diff line change 1- using System ;
2- using System . IO ;
31using System . Text . Json ;
4- using System . Threading . Tasks ;
52using ByteMeBackup . Configuration ;
63using Spectre . Console ;
74
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public DiscordWebhookLogService(ConfigService configService)
1818 public async Task SendLogAsync ( string message )
1919 {
2020 var config = ConfigService . Get ( ) ;
21- if ( string . IsNullOrEmpty ( config . DiscordWebhookUrl ) )
21+ if ( string . IsNullOrEmpty ( config ! . DiscordWebhookUrl ) )
2222 {
2323 AnsiConsole . Markup ( "[red]Discord webhook URL is not configured![/]\n " ) ;
2424 return ;
Original file line number Diff line number Diff line change 1- using System . Threading . Tasks ;
21using ByteMeBackup . Configuration ;
32using ByteMeBackup . Services ;
43using Spectre . Console ;
@@ -7,7 +6,6 @@ namespace ByteMeBackup;
76
87public class Startup
98{
10- private static ConfigService ConfigService ;
119 private static AppConfig ? Config ;
1210
1311 public static async Task Main ( )
@@ -18,7 +16,7 @@ public static async Task Main()
1816
1917 AnsiConsole . Markup ( "[bold white]Starting ByteMeBackup...[/]\n " ) ;
2018
21- if ( Config . BackupConfigs . Length == 0 )
19+ if ( Config ! . BackupConfigs . Length == 0 )
2220 {
2321 AnsiConsole . Markup ( "[red]No backup configurations found! Please check your config.json file.[/]\n " ) ;
2422 return ;
You can’t perform that action at this time.
0 commit comments