Skip to content

Commit

Permalink
Use cl-case and cl-assert
Browse files Browse the repository at this point in the history
Don't depend on the cl library having been loaded.
  • Loading branch information
legoscia committed Jul 6, 2018
1 parent e2fac6c commit 59f83ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions archive-cpio.el
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ This function is meant to be used as a :before-until advice for
(defun archive-cpio--parse-mode (mode)
"Parse MODE, an integer, and return a permissions string (10 characters)."
(string
(case (logand #o170000 mode)
(cl-case (logand #o170000 mode)
(#o140000 ?s)
(#o120000 ?l)
(#o100000 ?-)
Expand Down Expand Up @@ -103,7 +103,7 @@ ARCHIVE-BUFFER is nil."
(let (visual files)
(goto-char (point-min))
(while (not (eobp))
(assert (zerop (mod (- (point) (point-min)) 4)))
(cl-assert (zerop (mod (- (point) (point-min)) 4)))
(cond
((not (looking-at archive-cpio-entry-header-re))
(error "Unrecognized cpio header format"))
Expand Down

0 comments on commit 59f83ca

Please # to comment.