Removed some logs from console about json files that are opened
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user