Skip to content

Commit ca3807f

Browse files
committed
Work
Former-commit-id: cd1946b
1 parent 7b1c00a commit ca3807f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9894f441c6cec8a914fef907c4ce946c40aa2e12
1+
cf9dc4ba7e434c431c889c316063486194b993a9

pkg/generate/generate.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,9 @@ func Generate(c echo.Context) (err error) {
5858
}
5959

6060
if in.Loras != lastLora {
61-
var loraData = strings.Split(in.Loras, ", ")
62-
6361
var loraApply = make([]string, 0)
64-
for _, lora := range loraData {
62+
for _, loraD := range strings.Split(in.Loras, ", ") {
63+
var lora = strings.TrimSpace(loraD)
6564
if lora == "" {
6665
continue
6766
}

0 commit comments

Comments
 (0)