Skip to content

Commit 619582d

Browse files
committed
Removing duplicate calc from individual methods
1 parent f16d233 commit 619582d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

components/hubspot/sources/new-company-property-change/new-company-property-change.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default {
4343
};
4444
},
4545
isRelevant(company, updatedAfter) {
46-
return !updatedAfter || this.getTs(company) > updatedAfter;
46+
return this.getTs(company) > updatedAfter;
4747
},
4848
getParams(after) {
4949
const params = {

components/hubspot/sources/new-contact-property-change/new-contact-property-change.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default {
4343
};
4444
},
4545
isRelevant(contact, updatedAfter) {
46-
return !updatedAfter || this.getTs(contact) > updatedAfter;
46+
return this.getTs(contact) > updatedAfter;
4747
},
4848
getParams(after) {
4949
const params = {

components/hubspot/sources/new-custom-object-property-change/new-custom-object-property-change.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default {
4949
};
5050
},
5151
isRelevant(object, updatedAfter) {
52-
return !updatedAfter || this.getTs(object) > updatedAfter;
52+
return this.getTs(object) > updatedAfter;
5353
},
5454
getParams(after) {
5555
const params = {

components/hubspot/sources/new-deal-property-change/new-deal-property-change.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default {
4141
};
4242
},
4343
isRelevant(deal, updatedAfter) {
44-
return !updatedAfter || this.getTs(deal) > updatedAfter;
44+
return this.getTs(deal) > updatedAfter;
4545
},
4646
getParams(after) {
4747
const params = {

components/hubspot/sources/new-ticket-property-change/new-ticket-property-change.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default {
4444
};
4545
},
4646
isRelevant(ticket, updatedAfter) {
47-
return !updatedAfter || this.getTs(ticket) > updatedAfter;
47+
return this.getTs(ticket) > updatedAfter;
4848
},
4949
getParams(after) {
5050
const params = {

0 commit comments

Comments
 (0)