Skip to content

Commit e6dfa24

Browse files
tuananhaustinvazquez
authored andcommitted
fix: remove unnecessary conversion
Signed-off-by: Tuan Anh Tran <[email protected]>
1 parent e1d51d3 commit e6dfa24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/soci/commands/index/info.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ var infoCommand = cli.Command{
7777

7878
func prettyPrintJSON(b []byte) error {
7979
var prettyJSON bytes.Buffer
80-
if err := json.Indent(&prettyJSON, []byte(b), "", " "); err != nil {
80+
if err := json.Indent(&prettyJSON, b, "", " "); err != nil {
8181
return err
8282
}
8383
_, err := os.Stdout.Write(prettyJSON.Bytes())

0 commit comments

Comments
 (0)