Skip to content

Commit 38bd614

Browse files
committed
Update agent token to use path constant
1 parent b1e3012 commit 38bd614

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent_token.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func (s *agentTokens) Delete(ctx context.Context, agentTokenID string) error {
137137
return ErrInvalidAgentTokenID
138138
}
139139

140-
u := fmt.Sprintf("authentication-tokens/%s", url.PathEscape(agentTokenID))
140+
u := fmt.Sprintf(AuthenticationTokensPath, url.PathEscape(agentTokenID))
141141
req, err := s.client.NewRequest("DELETE", u, nil)
142142
if err != nil {
143143
return err

0 commit comments

Comments
 (0)