Skip to content

Commit ee9fdb5

Browse files
author
Jicheng Lu
committed
minor change
1 parent 9dab7c8 commit ee9fdb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Infrastructure/BotSharp.Core/Instructs/Services/InstructService.Execute.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ public async Task<InstructResult> Execute(
103103
}
104104

105105
IFileLlmProcessor? fileProcessor = null;
106-
if (!files.IsNullOrEmpty() && !string.IsNullOrEmpty(fileOptions?.FileLlmProcessorProvider))
106+
if (!files.IsNullOrEmpty() && fileOptions != null)
107107
{
108108
fileProcessor = _services.GetServices<IFileLlmProcessor>()
109-
.FirstOrDefault(x => x.Provider.IsEqualTo(fileOptions?.FileLlmProcessorProvider));
109+
.FirstOrDefault(x => x.Provider.IsEqualTo(fileOptions.FileLlmProcessorProvider));
110110
}
111111

112112
if (fileProcessor != null)

0 commit comments

Comments
 (0)