Made new imageloadresult instead of null

This commit is contained in:
CakeAndBanana
2025-10-20 20:51:55 +02:00
parent 00d4632510
commit db0115316d

View File

@@ -1130,8 +1130,8 @@ public partial class LightlessHub
var existingData = await DbContext.UserProfileData.SingleOrDefaultAsync(u => u.UserUID == dto.User.UID, cancellationToken: RequestAbortedToken).ConfigureAwait(false); var existingData = await DbContext.UserProfileData.SingleOrDefaultAsync(u => u.UserUID == dto.User.UID, cancellationToken: RequestAbortedToken).ConfigureAwait(false);
ImageCheckService.ImageLoadResult profileResult = null; ImageCheckService.ImageLoadResult profileResult = new();
ImageCheckService.ImageLoadResult bannerResult = null; ImageCheckService.ImageLoadResult bannerResult = new();
//Avatar image validation //Avatar image validation
if (!string.IsNullOrEmpty(dto.ProfilePictureBase64)) if (!string.IsNullOrEmpty(dto.ProfilePictureBase64))