mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	Fix nullability errors in Jellyfin.Server
This commit is contained in:
		
							parent
							
								
									e82829c444
								
							
						
					
					
						commit
						e8675a6c24
					
				@ -30,7 +30,8 @@ namespace Jellyfin.Server.Formatters
 | 
			
		||||
        /// <returns>Write stream task.</returns>
 | 
			
		||||
        public override Task WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
 | 
			
		||||
        {
 | 
			
		||||
            return context.HttpContext.Response.WriteAsync(context.Object?.ToString());
 | 
			
		||||
            var stringResponse = context.Object?.ToString();
 | 
			
		||||
            return stringResponse == null ? Task.CompletedTask : context.HttpContext.Response.WriteAsync(stringResponse);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -26,7 +26,8 @@ namespace Jellyfin.Server.Formatters
 | 
			
		||||
        /// <inheritdoc />
 | 
			
		||||
        public override Task WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
 | 
			
		||||
        {
 | 
			
		||||
            return context.HttpContext.Response.WriteAsync(context.Object?.ToString());
 | 
			
		||||
            var stringResponse = context.Object?.ToString();
 | 
			
		||||
            return stringResponse == null ? Task.CompletedTask : context.HttpContext.Response.WriteAsync(stringResponse);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user