Skip to content

Commit 312e73d

Browse files
committed
suggestion
1 parent 55ea9c8 commit 312e73d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

server/cmt_cmds.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,10 @@ $ %s query block --%s=%s <hash>
247247
err error
248248
height int64
249249
)
250-
heightStr := args[0]
250+
heightStr := ""
251+
if len(args) > 0 {
252+
heightStr = args[0]
253+
}
251254

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

0 commit comments

Comments
 (0)