Skip to content

Commit

Permalink
Update src/common/harvest/harvest.js
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan Porter <insomniacrampage@hotmail.com>
  • Loading branch information
patrickhousley and metal-messiah authored Jun 1, 2023
1 parent b7a9d02 commit 31afde8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/harvest/harvest.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class Harvest extends SharedContext {

var agentRuntime = getRuntime(this.sharedContext.agentIdentifier)

if (!payload.body && ((opts && !opts.sendEmptyBody) || !opts)) { // no payload body? nothing to send, just run onfinish stuff and return
if (!payload.body && !opts?.sendEmptyBody) { // no payload body? nothing to send, just run onfinish stuff and return
if (cbFinished) {
cbFinished({ sent: false })
}
Expand Down

0 comments on commit 31afde8

Please sign in to comment.