Skip to content

Commit

Permalink
suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Jul 26, 2024
1 parent 55ea9c8 commit 312e73d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/cmt_cmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,10 @@ $ %s query block --%s=%s <hash>
err error
height int64
)
heightStr := args[0]
heightStr := ""
if len(args) > 0 {
heightStr = args[0]
}

if heightStr == "" {
cmd.Println("Falling back to latest block height:")
Expand Down

0 comments on commit 312e73d

Please sign in to comment.