From 1b751781f0681a047f3d3d6097009478886ee2f5 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 27 Apr 2021 18:52:57 +0800 Subject: refactor: ... --- BackEnd/Timeline/Services/Imaging/ImageException.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'BackEnd/Timeline/Services/Imaging/ImageException.cs') diff --git a/BackEnd/Timeline/Services/Imaging/ImageException.cs b/BackEnd/Timeline/Services/Imaging/ImageException.cs index 926ecc0a..12aefa0a 100644 --- a/BackEnd/Timeline/Services/Imaging/ImageException.cs +++ b/BackEnd/Timeline/Services/Imaging/ImageException.cs @@ -19,7 +19,7 @@ namespace Timeline.Services.Imaging /// /// Image is not of required size. /// - NotSquare, + BadSize, /// /// Other unknown errer. /// @@ -42,16 +42,13 @@ namespace Timeline.Services.Imaging { ErrorReason.CantDecode => Resource.ExceptionImageReasonCantDecode, ErrorReason.UnmatchedFormat => Resource.ExceptionImageReasonUnmatchedFormat, - ErrorReason.NotSquare => Resource.ExceptionImageReasonBadSize, + ErrorReason.BadSize => Resource.ExceptionImageReasonBadSize, _ => Resource.ExceptionImageReasonUnknownError }); public ErrorReason Error { get; } -#pragma warning disable CA1819 // Properties should not return arrays public byte[]? ImageData { get; } -#pragma warning restore CA1819 // Properties should not return arrays public string? RequestType { get; } - // This field will be null if decoding failed. public string? RealType { get; } } -- cgit v1.2.3