Skip to content

Commit f84fbc1

Browse files
committed
Fix for nil err check inverted unintentionally by copy-paste
1 parent 30f9d97 commit f84fbc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/fetchd/cmd/genesis-asi-upgrade.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ func addReconciliationContractState(contractStateRecords *[]interface{}, network
588588
var err error
589589
var stateRecordJSONStr []byte
590590
stateRecordJSONStr, err = json.Marshal(stateRecord)
591-
if err == nil {
591+
if err != nil {
592592
panic(err)
593593
}
594594
stateRecordEnc := map[string]string{

0 commit comments

Comments
 (0)