From f9e4e533bb9140c6e1ec4644fdd52787ce96734f Mon Sep 17 00:00:00 2001 From: Timerix Date: Sat, 22 Mar 2025 21:21:24 +0500 Subject: [PATCH] WriteAllText return type fix --- DTLib/DTLib.csproj | 2 +- DTLib/Filesystem/File.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DTLib/DTLib.csproj b/DTLib/DTLib.csproj index 6e0fb18..57ee493 100644 --- a/DTLib/DTLib.csproj +++ b/DTLib/DTLib.csproj @@ -2,7 +2,7 @@ DTLib - 1.6.2 + 1.6.3 Timerix Library for all my C# projects GIT diff --git a/DTLib/Filesystem/File.cs b/DTLib/Filesystem/File.cs index 021af49..3756d3d 100644 --- a/DTLib/Filesystem/File.cs +++ b/DTLib/Filesystem/File.cs @@ -87,8 +87,8 @@ public static class File await stream.WriteAsync(content, 0, content.Length); } - public static async Task WriteAllText(IOPath file, string content) => - await WriteAllBytesAsync(file, content.ToBytes(StringConverter.UTF8)); + public static void WriteAllText(IOPath file, string content) => + WriteAllBytes(file, content.ToBytes(StringConverter.UTF8)); public static async Task WriteAllTextAsync(IOPath file, string content) => await WriteAllBytesAsync(file, content.ToBytes(StringConverter.UTF8));