Skip to content

Commit

Permalink
Return nil session on StatusInactivePending
Browse files Browse the repository at this point in the history
  • Loading branch information
freQniK committed Nov 13, 2023
1 parent 5d544df commit 22dd348
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cmd/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,7 @@ func ConnectCmd() *cobra.Command {

address, err := hubtypes.NodeAddressFromBech32(args[1])
if err != nil {
message := fmt.Sprintf("%s", err)
fmt.Println(message)
return err

}

timeout, err := cmd.Flags().GetDuration(clienttypes.FlagTimeout)
Expand Down Expand Up @@ -214,7 +211,6 @@ func ConnectCmd() *cobra.Command {
sessionQueryClient = sessiontypes.NewQueryServiceClient(ctx)
)

// This is where it finds the inactive_pending session, session.ID
session, err := queryActiveSession(sessionQueryClient, ctx.FromAddress)
if err != nil {
return err
Expand Down

0 comments on commit 22dd348

Please sign in to comment.