Skip to content

Commit

Permalink
Use dash instead of seq
Browse files Browse the repository at this point in the history
  • Loading branch information
Silex committed Nov 9, 2023
1 parent a29be58 commit ec748a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-context.el
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ displayed values in the column."
(let* ((fmt "{{ json .Current }} {{ json .Name }}")
(data (aio-await (docker-run-docker-async "context" "ls" args (format "--format=\"%s\"" fmt))))
(lines (s-split "\n" data t))
(active-line (seq-find (lambda (line) (string-match-p "true" (car (s-split " " line)))) lines)))
(active-line (-first (lambda (line) (string-match-p "true" (car (s-split " " line)))) lines)))
(when active-line
(cadr (split-string active-line "\"")))))

Expand Down
2 changes: 1 addition & 1 deletion docker-utils.el
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ defcustom (e.g. `docker-image-columns`) used to apply any custom format function
(data-index (+ it-index 1)))
(when fmt-fn (aset data data-index (apply fmt-fn (list (aref data data-index)))))))

(list (aref data 0) (seq-drop data 1)))
(list (aref data 0) (-drop 1 data)))
(json-readtable-error
(error "Could not read following string as json:\n%s" line))))

Expand Down

0 comments on commit ec748a8

Please sign in to comment.