mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 03:04:21 +01:00
skip nil values
This commit is contained in:
@@ -484,6 +484,9 @@ func renderArgs(args *map[string]any, titleKey string) string {
|
||||
title := ""
|
||||
parts := []string{}
|
||||
for key, value := range *args {
|
||||
if value == nil {
|
||||
continue
|
||||
}
|
||||
if key == "filePath" || key == "path" {
|
||||
value = relative(value.(string))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user