mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-03 12:42:43 +00:00
chore: cleanup proxmox IsAuthError and remove stray comment
- Make IsAuthError unexported (isAuthError) since it's only used internally - Remove stray '// test comment' from docker_metadata.go
This commit is contained in:
@@ -154,5 +154,3 @@ func (h *DockerMetadataHandler) HandleDeleteMetadata(w http.ResponseWriter, r *h
|
||||
|
||||
w.WriteHeader(http.StatusNoContent)
|
||||
}
|
||||
|
||||
// test comment
|
||||
|
||||
@@ -649,7 +649,7 @@ func (cc *ClusterClient) executeWithFailover(ctx context.Context, fn func(*Clien
|
||||
}
|
||||
|
||||
// Check if it's an auth error - don't retry on auth errors
|
||||
if IsAuthError(err) {
|
||||
if isAuthError(err) {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -1230,7 +1230,8 @@ func (cc *ClusterClient) GetDisks(ctx context.Context, node string) ([]Disk, err
|
||||
return result, err
|
||||
}
|
||||
|
||||
func IsAuthError(err error) bool {
|
||||
// isAuthError checks if an error is an authentication error
|
||||
func isAuthError(err error) bool {
|
||||
if err == nil {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user