Skip to content

Commit

Permalink
fix(cmd): fix formatting during submit (#2551)
Browse files Browse the repository at this point in the history
(cherry picked from commit 426c337)
  • Loading branch information
vgonkivs authored and walldiss committed Sep 22, 2023
1 parent 5f828f3 commit 6ee1b4c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmd/celestia/blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,7 @@ func formatData(data interface{}) interface{} {
if reflect.TypeOf(data).Kind() == reflect.Slice {
blobs, ok := data.([]*blob.Blob)
if !ok {
fmt.Fprintln(os.Stderr, "could not cast to []blob.Blob")
os.Exit(1)
return data
}

result := make([]tempBlob, len(blobs))
Expand All @@ -217,8 +216,7 @@ func formatData(data interface{}) interface{} {

b, ok := data.(*blob.Blob)
if !ok {
fmt.Fprintln(os.Stderr, "could not cast to blob.Blob")
os.Exit(1)
return data
}
return tempBlob{
Namespace: b.Namespace(),
Expand Down

0 comments on commit 6ee1b4c

Please sign in to comment.