From 38eb021ed4c362e22b6e7b99cbccf0acb7ce0706 Mon Sep 17 00:00:00 2001 From: "nikbel2004@outlook.com" Date: Wed, 29 Nov 2023 01:42:58 +0400 Subject: [PATCH] Lab fix --- Tank/Tank/TanksGenericStorage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tank/Tank/TanksGenericStorage.cs b/Tank/Tank/TanksGenericStorage.cs index 3a5d10f..22d97dd 100644 --- a/Tank/Tank/TanksGenericStorage.cs +++ b/Tank/Tank/TanksGenericStorage.cs @@ -72,8 +72,8 @@ namespace Tank records.Append($"{elem?.GetDataForSave(_separatorForObject)}{_separatorRecords}"); } data.AppendLine($"{record.Key}{_separatorForKeyValue}{records}"); - } + if (data.Length == 0) { return false;