Removed some logs from console about json files that are opened

This commit is contained in:
2023-07-31 22:10:26 +03:00
parent 9e6fcdbe6f
commit 42e1fd917e
2 changed files with 1 additions and 1 deletions

View File

@@ -56,6 +56,7 @@ public class Config
if (file is null) throw new FileLoadException("The file can not be null"); if (file is null) throw new FileLoadException("The file can not be null");
if(!File.Exists(file)) if(!File.Exists(file))
File.Create(file).Close(); File.Create(file).Close();
_dictionary = PrivateReadConfig(file).GetAwaiter().GetResult(); _dictionary = PrivateReadConfig(file).GetAwaiter().GetResult();
_file = file; _file = file;
} }

View File

@@ -101,7 +101,6 @@ public static class Functions
/// <returns></returns> /// <returns></returns>
public static async Task<T> ConvertFromJson<T>(string input) public static async Task<T> ConvertFromJson<T>(string input)
{ {
Console.WriteLine(input);
Stream text; Stream text;
if (File.Exists(input)) if (File.Exists(input))
text = new MemoryStream(await File.ReadAllBytesAsync(input)); text = new MemoryStream(await File.ReadAllBytesAsync(input));