Skip to content

Commit a631e37

Browse files
committed
♻️ refactor: unnecessary duplicate error check
Prior to this commit, The `console.go` file contained a duplicate error check for the `err` variable, which was redundant and unnecessary. After this commit, The duplicate error check has been removed, simplifying the code and improving readability. Signed-off-by: Sriram Venkatesh <sriram.venkatesh@versent.com.au>
1 parent 1eeb6f8 commit a631e37

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

cmd/saml2aws/commands/console.go

-3
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ func Console(consoleFlags *flags.ConsoleFlags) error {
4848
return errors.Wrap(err,
4949
fmt.Sprintf("error loading credentials for profile: %s", consoleFlags.LoginExecFlags.ExecProfile))
5050
}
51-
if err != nil {
52-
return errors.Wrap(err, "error logging in")
53-
}
5451

5552
if consoleFlags.LoginExecFlags.ExecProfile != "" {
5653
// Assume the desired role before generating env vars

0 commit comments

Comments
 (0)