Skip to content

Commit 444f7bc

Browse files
gptel-gh: Removed unnecessary call to (current-time)
(float-time) will implicitly use (current-time) if the argument is not specified.
1 parent ffea59c commit 444f7bc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gptel-gh.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,7 @@ Then we need a session token."
347347
(gptel--gh-token gptel-backend)))
348348
(when (or (null token)
349349
(and expires_at
350-
(> (round (float-time (current-time)))
351-
expires_at)))
350+
(> (round (float-time)) expires_at)))
352351
(gptel--gh-renew-token))))
353352

354353
;;;###autoload

0 commit comments

Comments
 (0)