mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-07-27 21:42:56 +00:00
Replaced IsNullOrEmpty with IsNullOrWhiteSpace
This commit is contained in:
parent
3835f1db1e
commit
01f2176910
@ -4,5 +4,5 @@ namespace AIStudio.Tools;
|
||||
|
||||
public readonly record struct EnterpriseEnvironment(string ConfigurationServerUrl, Guid ConfigurationId, EntityTagHeaderValue? ETag)
|
||||
{
|
||||
public bool IsActive => !string.IsNullOrEmpty(this.ConfigurationServerUrl) && this.ConfigurationId != Guid.Empty;
|
||||
public bool IsActive => !string.IsNullOrWhiteSpace(this.ConfigurationServerUrl) && this.ConfigurationId != Guid.Empty;
|
||||
}
|
@ -23,8 +23,7 @@ public sealed partial class RustService
|
||||
while (!reader.EndOfStream && chunkCount < maxChunks)
|
||||
{
|
||||
var line = await reader.ReadLineAsync();
|
||||
|
||||
if (string.IsNullOrEmpty(line))
|
||||
if (string.IsNullOrWhiteSpace(line))
|
||||
continue;
|
||||
|
||||
if (!line.StartsWith("data:", StringComparison.InvariantCulture))
|
||||
|
@ -77,7 +77,8 @@ public static class SseHandler
|
||||
|
||||
private static bool ProcessImageSegment(PptxImageData pptxImageData)
|
||||
{
|
||||
if (string.IsNullOrEmpty(pptxImageData.Id)) { return false; }
|
||||
if (string.IsNullOrWhiteSpace(pptxImageData.Id))
|
||||
return false;
|
||||
|
||||
var id = pptxImageData.Id;
|
||||
var segment = pptxImageData.Segment ?? 0;
|
||||
|
Loading…
Reference in New Issue
Block a user