aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Data/SqliteItemRepository.cs
diff options
context:
space:
mode:
authorcvium <clausvium@gmail.com>2021-06-05 20:16:04 +0200
committercvium <clausvium@gmail.com>2021-06-05 20:16:04 +0200
commit9111730a0a836e2c0753c5fe00a8fac87a173584 (patch)
treed9cd29e14cd7c4ab702fb72c181e35553ee28a2a /Emby.Server.Implementations/Data/SqliteItemRepository.cs
parentcfba7daa50296b41d550b2041f9878721696263b (diff)
More review
Diffstat (limited to 'Emby.Server.Implementations/Data/SqliteItemRepository.cs')
-rw-r--r--Emby.Server.Implementations/Data/SqliteItemRepository.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.cs
index 15a4ab318..3ae28fadf 100644
--- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs
+++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs
@@ -1073,10 +1073,7 @@ namespace Emby.Server.Implementations.Data
}
// Extremely unlikely, but somehow one or more of the image strings were malformed. Cut the array.
- var newResult = new ItemImageInfo[position];
- Array.Copy(result, newResult, position);
-
- return newResult;
+ return result[..position];
}
private void AppendItemImageInfo(StringBuilder bldr, ItemImageInfo image)