fix(tvl.el): Replace fifth with nth 4

as before, fifth doesn't exist on all emacsen, but nth definitely does

Change-Id: Ic0e4e3790402d960d1546d37187758a4d9ca33c2
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4346
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
Griffin Smith 2021-12-15 18:18:21 -05:00 committed by grfn
parent 7ed62b5337
commit 47f1f3be5f

View file

@ -128,7 +128,7 @@ passes. This is potentially dangerous, use with care."
(-max-by (-max-by
(-on #'> (lambda (ref) (-on #'> (lambda (ref)
(string-to-number (string-to-number
(fifth (split-string ref (rx "/")))))) (nth 4 (split-string ref (rx "/"))))))
(-remove (-remove
(apply-partially #'s-ends-with-p "meta") (apply-partially #'s-ends-with-p "meta")
(cdr cl-to-refs))))) (cdr cl-to-refs)))))