jenkinsci / cdevents-plugin

The CDEvents Plugin for Jenkins allows interoperability between different CI/CD tools by adopting core CDF project specification
https://plugins.jenkins.io/cdevents/
Apache License 2.0
4 stars 9 forks source link

Optimize Repeated Method Calls #21

Closed apurvagandhi closed 5 months ago

apurvagandhi commented 6 months ago

Describe the solution you'd like The CDEventsGlobalConfig.get() method is called multiple times. You could call this method once and store the result in a variable, then use this variable in the subsequent lines. This makes the code cleaner and slightly more efficient.

jes-so commented 6 months ago

I'll grab this one.

arjun-kshirsagar commented 5 months ago

@rorybakerfmr Please close this issue, I have reviewed the code, it's a clean code.