Clean up code

This commit is contained in:
David Majdandžić
2023-04-05 17:59:51 +02:00
parent 6dbb108c2b
commit 9181033fda
4 changed files with 45 additions and 34 deletions

View File

@@ -87,4 +87,12 @@ export default class ProcessorManager {
static getProcessorsForType(type: string): PduProcessor[] {
return this.processors.filter((processor: PduProcessor) => processor.sessionType === type);
}
static getPreprocessorsForType(type: string): PduProcessor[] {
return this.preprocessors.filter((processor: PduProcessor) => processor.sessionType === type);
}
static getPostprocessorsForType(type: string): PduProcessor[] {
return this.postprocessors.filter((processor: PduProcessor) => processor.sessionType === type);
}
}