Skip to content

Commit

Permalink
Merge pull request #112 from SiaFoundation/nate/fix-duplicate-integri…
Browse files Browse the repository at this point in the history
…ty-error

Fix integrity check duplicate error
  • Loading branch information
n8maninger authored Jul 16, 2023
2 parents a27ba69 + de05fe5 commit 2abf31d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions api/integritycheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ func (ic *integrityCheckJobs) CheckContract(contractID types.FileContractID) (ui
func (a *api) handleGETContractCheck(c jape.Context) {
var contractID types.FileContractID
if err := c.DecodeParam("id", &contractID); err != nil {
c.Error(fmt.Errorf("failed to parse contract ID: %w", err), http.StatusBadRequest)
return
}

Expand All @@ -112,7 +111,6 @@ func (a *api) handleGETContractCheck(c jape.Context) {
func (a *api) handleDeleteContractCheck(c jape.Context) {
var contractID types.FileContractID
if err := c.DecodeParam("id", &contractID); err != nil {
c.Error(fmt.Errorf("failed to parse contract ID: %w", err), http.StatusBadRequest)
return
}

Expand All @@ -124,7 +122,6 @@ func (a *api) handleDeleteContractCheck(c jape.Context) {
func (a *api) handlePUTContractCheck(c jape.Context) {
var contractID types.FileContractID
if err := c.DecodeParam("id", &contractID); err != nil {
c.Error(fmt.Errorf("failed to parse contract ID: %w", err), http.StatusBadRequest)
return
}

Expand Down

0 comments on commit 2abf31d

Please sign in to comment.