Skip to content

Commit

Permalink
removing extra if err != nil
Browse files Browse the repository at this point in the history
  • Loading branch information
pablodeymo committed Oct 15, 2024
1 parent cb9225b commit fdb9942
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions aggregator/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package aggregator

import (
"context"
"fmt"
"math/big"
"sync"
"time"
Expand Down Expand Up @@ -124,6 +125,7 @@ func NewAggregator(c *config.Config) (*Aggregator, error) {
},
})
if err != nil {
fmt.Println("Error creating taskResponseType")
return sdktypes.TaskResponseDigest{}, err
}
arguments := abi.Arguments{
Expand All @@ -134,10 +136,7 @@ func NewAggregator(c *config.Config) (*Aggregator, error) {

encodeTaskResponseByte, err := arguments.Pack(taskResponse)
if err != nil {
return sdktypes.TaskResponseDigest{}, err
}

if err != nil {
fmt.Println("Error Packing taskResponse")
return sdktypes.TaskResponseDigest{}, err
}

Expand Down

0 comments on commit fdb9942

Please sign in to comment.