Skip to content

Commit

Permalink
Fix for nil err check inverted unintentionally by copy-paste
Browse files Browse the repository at this point in the history
  • Loading branch information
pbukva committed Jun 5, 2024
1 parent 30f9d97 commit f84fbc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/fetchd/cmd/genesis-asi-upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ func addReconciliationContractState(contractStateRecords *[]interface{}, network
var err error
var stateRecordJSONStr []byte
stateRecordJSONStr, err = json.Marshal(stateRecord)
if err == nil {
if err != nil {
panic(err)
}
stateRecordEnc := map[string]string{
Expand Down

0 comments on commit f84fbc1

Please sign in to comment.