Skip to content

Commit

Permalink
Mock dry run delete count
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalDelarea committed Mar 12, 2024
1 parent c76da0f commit 91c1eb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions artifactory/services/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ func (ds *DeleteService) createFileHandlerFunc(result *utils.Result) fileDeleteH
}
log.Info(logMsgPrefix+"Deleting", resultItem.GetItemRelativePath())
if ds.DryRun {
// Mock delete count
result.SuccessCount[threadId]++
return nil
}
httpClientsDetails := ds.GetArtifactoryDetails().CreateHttpClientDetails()
Expand Down

0 comments on commit 91c1eb7

Please sign in to comment.