feat: add first simple jakartaee10-servlet project
jakarta project has to be cleaned up and some smaller errors have to be fixed
This commit is contained in:
parent
fe83dc1f33
commit
04ecd56598
8 changed files with 114 additions and 4 deletions
|
|
@ -26,7 +26,6 @@ func LoadConfig() (*Config, error) {
|
|||
|
||||
if err := viper.ReadInConfig(); err != nil {
|
||||
if _, ok := err.(viper.ConfigFileNotFoundError); ok {
|
||||
// Config file not found, create default config
|
||||
return createDefaultConfig(configPath)
|
||||
}
|
||||
return nil, err
|
||||
|
|
@ -71,5 +70,4 @@ func createDefaultConfig(configPath string) (*Config, error) {
|
|||
}
|
||||
|
||||
return &defaultConfig, nil
|
||||
// ... (Rest der Funktion bleibt gleich)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue