Skip to content

Commit

Permalink
[BOYSCOUT] TMailJMAPModule: parse the conf once!
Browse files Browse the repository at this point in the history
  • Loading branch information
chibenwa authored and Arsnael committed Nov 4, 2024
1 parent 7a18909 commit ee920bc
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,5 @@ class TMailJMAPModule extends AbstractModule {
}, identity)

@Provides
def provideJMAPExtensionConfiguration(propertiesProvider: PropertiesProvider): JMAPExtensionConfiguration = {
try {
JMAPExtensionConfiguration.from(propertiesProvider.getConfiguration("jmap"))
} catch {
case _: FileNotFoundException => JMAPExtensionConfiguration()
}
}
def provideJMAPExtensionConfiguration(@Named("jmap") configuration: Configuration): JMAPExtensionConfiguration = JMAPExtensionConfiguration.from(configuration)
}

0 comments on commit ee920bc

Please sign in to comment.