Skip to content

Commit e3e43b3

Browse files
slaveekse11sy
andauthored
Apply suggestions from code review
Co-authored-by: e11sy <[email protected]>
1 parent 754a3d5 commit e3e43b3

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/models/eventsFactory.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -605,9 +605,6 @@ class EventsFactory extends Factory {
605605
if (repetitionId === originalEventId) {
606606
const originalEvent = await this.eventsDataLoader.load(originalEventId);
607607

608-
if (!originalEvent) {
609-
return null;
610-
}
611608

612609
/**
613610
* All events have same type with originalEvent id
@@ -629,9 +626,6 @@ class EventsFactory extends Factory {
629626

630627
const originalEvent = await this.eventsDataLoader.load(originalEventId);
631628

632-
if (!originalEvent) {
633-
return null;
634-
}
635629

636630
/**
637631
* If one of the ids are invalid (originalEvent or repetition not found) return null

0 commit comments

Comments
 (0)