Skip to content

Commit a814942

Browse files
committed
chore(hooks): remove cutover cleanup leftovers
1 parent 3a9e0c2 commit a814942

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

ae-cli/internal/hooks/handler.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -549,12 +549,3 @@ func bindingSourceFromMarker(sessionID string) string {
549549
}
550550
return "unbound"
551551
}
552-
553-
func firstNonEmpty(values ...string) string {
554-
for _, value := range values {
555-
if strings.TrimSpace(value) != "" {
556-
return strings.TrimSpace(value)
557-
}
558-
}
559-
return ""
560-
}

ae-cli/internal/hooks/queue.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,11 @@ func PendingSessionIDs() ([]string, error) {
231231
if sessionID == "" {
232232
continue
233233
}
234-
queuePath, err := queuePath(sessionID)
234+
path, err := queuePath(sessionID)
235235
if err != nil {
236236
return nil, err
237237
}
238-
info, err := os.Stat(queuePath)
238+
info, err := os.Stat(path)
239239
if err != nil {
240240
if os.IsNotExist(err) {
241241
continue

0 commit comments

Comments
 (0)