Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
switch to 'var hexBlock string' convention
Browse files Browse the repository at this point in the history
  • Loading branch information
petabytestorage committed Oct 13, 2017
1 parent 7b6e39c commit 8384a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/explorer.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func (api *API) buildExplorerBlock(height types.BlockHeight, block types.Block,
panic("incorrect request to buildExplorerBlock - block does not exist")
}

hexBlock := ""
var hexBlock string
if hexBlockEnable {
hexBlock = fmt.Sprintf("%x", encoding.Marshal(block)[:])
}
Expand Down

0 comments on commit 8384a40

Please sign in to comment.