Skip to content

Commit 7a06c43

Browse files
committed
Function does not require return parameter
1 parent dd42382 commit 7a06c43

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/Return.Web/Components/NoteLaneBase.cs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,8 @@ protected async Task AutoGroupNotes()
282282
new("title") { Description = "The name of the group to create", IsRequired = true, ParameterType = typeof(string)},
283283
new("noteIds") { Description = "An array of note IDs of the notes to put into this group", IsRequired = true, ParameterType = typeof(int[])},
284284
],
285-
ReturnParameter = new()
286-
{
287-
Description = "Indication of the note group created",
288-
}
285+
ReturnParameter = null
286+
289287
}
290288
)
291289
],
@@ -354,7 +352,7 @@ [NOTE 123] Some text here [END NOTE]"
354352
}
355353

356354

357-
private async Task<string> MakeNoteGroup(string title, int[] noteIds)
355+
private async Task MakeNoteGroup(string title, int[] noteIds)
358356
{
359357
try
360358
{
@@ -381,12 +379,11 @@ private async Task<string> MakeNoteGroup(string title, int[] noteIds)
381379
}
382380
}
383381

384-
return $"Created note group \"{title}\" and with notes: {String.Join(",", noteIds)}";
385382
}
386383
catch (Exception ex)
387384
{
388385
Logger.LogError(ex, "Error processing AI invocation");
389-
return $"An error occured making group {title}";
386+
throw;
390387
}
391388
}
392389

0 commit comments

Comments
 (0)