Skip to content

Commit

Permalink
🔥 Remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
andremacedopv committed Jan 26, 2023
1 parent e579c41 commit 3416542
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions transactions/createAssetType.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ var CreateAssetType = Transaction{
if err != nil {
return nil, errors.WrapError(err, "failed to store asset list")
}

nerr := stub.Stub.SetEvent("assetListChange", nil)
if nerr != nil {
return nil, errors.NewCCError("error setting event for asset list", http.StatusInternalServerError)
}
}

resBytes, nerr := json.Marshal(list)
Expand Down
5 changes: 0 additions & 5 deletions transactions/deleteAssetType.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@ var DeleteAssetType = Transaction{
return nil, errors.WrapError(err, "failed to store asset list")
}

nerr := stub.Stub.SetEvent("assetListChange", nil)
if nerr != nil {
return nil, errors.NewCCError("error setting event for asset list", http.StatusInternalServerError)
}

resBytes, nerr := json.Marshal(resArr)
if nerr != nil {
return nil, errors.WrapError(err, "failed to marshal response")
Expand Down
5 changes: 0 additions & 5 deletions transactions/updateAssetType.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,6 @@ var UpdateAssetType = Transaction{
return nil, errors.WrapError(err, "failed to store asset list")
}

nerr := stub.Stub.SetEvent("assetListChange", nil)
if nerr != nil {
return nil, errors.NewCCError("error setting event for asset list", http.StatusInternalServerError)
}

resBytes, nerr := json.Marshal(response)
if nerr != nil {
return nil, errors.WrapError(err, "failed to marshal response")
Expand Down

0 comments on commit 3416542

Please sign in to comment.