Skip to content

Commit 049c6d6

Browse files
committed
Use assoc-default
1 parent c862d2c commit 049c6d6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

swift-mode-indent.el

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,9 +1354,9 @@ Return the token skipped."
13541354
(progn
13551355
(backward-list)
13561356
(swift-mode:token
1357-
(cdr (assoc previous-type '((} . {})
1358-
(\) . \(\))
1359-
(\] . \[\]))))
1357+
(assoc-default previous-type '((} . {})
1358+
(\) . \(\))
1359+
(\] . \[\])))
13601360
(buffer-substring-no-properties (point) previous-end)
13611361
(point)
13621362
previous-end))
@@ -1394,9 +1394,9 @@ Return the token skipped."
13941394
(progn
13951395
(forward-list)
13961396
(swift-mode:token
1397-
(cdr (assoc next-type '(({ . {})
1398-
(\( . \(\))
1399-
(\[ . \[\]))))
1397+
(assoc-default next-type '(({ . {})
1398+
(\( . \(\))
1399+
(\[ . \[\])))
14001400
(buffer-substring-no-properties next-start (point))
14011401
next-start
14021402
(point)))

0 commit comments

Comments
 (0)