mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
extract publishing code to private method
This commit is contained in:
@@ -152,7 +152,10 @@ export class UnoptimizedInMemoryRepository implements GetterSetterRepository {
|
||||
} else {
|
||||
this.etas.push(eta);
|
||||
}
|
||||
this.publishEtaUpdateToSubscribers(eta);
|
||||
}
|
||||
|
||||
private publishEtaUpdateToSubscribers(eta: IEta) {
|
||||
this.subscribers.forEach(subscriber => {
|
||||
subscriber(eta);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user