Skip to content

Commit

Permalink
closql-insert: No longer needlessly use when-let
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Jun 1, 2024
1 parent c591e6b commit c7deeaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion closql.el
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@
(let (alist)
(dolist (slot (eieio-class-slots (eieio--object-class obj)))
(setq slot (cl--slot-descriptor-name slot))
(when-let ((table (closql--slot-table obj slot)))
(when (closql--slot-table obj slot)
(push (cons slot (closql-oref obj slot)) alist)
(closql--oset obj slot eieio--unbound)))
(closql-with-transaction db
Expand Down

0 comments on commit c7deeaa

Please sign in to comment.