Skip to content

Commit

Permalink
fix(cmd): fix formatting during submit (celestiaorg#2551)
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed Aug 10, 2023
1 parent 94a6b63 commit 426c337
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 426c337

Please sign in to comment.