Skip to content

Commit

Permalink
fix: bad help
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Jan 13, 2025
1 parent 6c77df5 commit b52d41e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion copilot.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (c *copilotHTTPClient) Do(req *http.Request) (*http.Response, error) {
req.Header.Set("Editor-Version", copilotEditorVersion)
req.Header.Set("User-Agent", copilotUserAgent)

var isTokenExpired = c.AccessToken != nil && c.AccessToken.ExpiresAt < time.Now().Unix()
isTokenExpired := c.AccessToken != nil && c.AccessToken.ExpiresAt < time.Now().Unix()

if c.AccessToken == nil || isTokenExpired {
accessToken, err := getCopilotAccessToken(c.client)
Expand Down
2 changes: 1 addition & 1 deletion mods.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ func (m *Mods) startCompletionCmd(content string) tea.Cmd {
err: newUserErrorf(
"Please specify an API endpoint with %s or configure the model in the settings: %s",
m.Styles.InlineCode.Render("--api"),
m.Styles.InlineCode.Render("mods -s"),
m.Styles.InlineCode.Render("mods --settings"),
),
}
}
Expand Down

0 comments on commit b52d41e

Please sign in to comment.