Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bcmmbaga committed Sep 27, 2024
1 parent e3cf807 commit f13adf6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions management/server/idp/zitadel.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package idp

import (
"context"
"errors"
"fmt"
"io"
"net/http"
Expand Down Expand Up @@ -128,10 +129,10 @@ func readZitadelError(body io.ReadCloser) error {
}

if len(errsOut) == 0 {
return fmt.Errorf("data missing")
return errors.New("unknown error")
}

return fmt.Errorf(strings.Join(errsOut, " "))
return errors.New(strings.Join(errsOut, " "))
}

// NewZitadelManager creates a new instance of the ZitadelManager.
Expand Down

0 comments on commit f13adf6

Please sign in to comment.