Skip to content

Commit cba78ae

Browse files
committed
Remove this unnecessary check for null.
1 parent ab6aed7 commit cba78ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Altinn.App.Core/Helpers/PlatformHttpResponseSnapshotException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ mediaType is null
209209
// For binary content, return a summary instead of trying to read it as text
210210
long? contentLength = httpContent.Headers?.ContentLength;
211211
string lengthStr = contentLength.HasValue ? $"{contentLength.Value} bytes" : "unknown size";
212-
return ($"<{mediaType ?? "application/octet-stream"}; {lengthStr}>", false);
212+
return ($"<{mediaType}; {lengthStr}>", false);
213213
}
214214

215215
// For textual content, stream with bounded buffer to avoid loading entire response into memory

0 commit comments

Comments
 (0)