feature-8 #9

Merged
nicolas.boufideline merged 27 commits from feature-8 into main 2026-01-04 16:51:23 +00:00
Showing only changes of commit 014ae61dbb - Show all commits

f-8: internal/conf: delete conf file existance check #8

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
GnomeZworc 2025-12-24 14:05:47 +01:00
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632

View file

@ -17,9 +17,7 @@ func LoadConfig(path string) (*Config, error) {
v.SetDefault("database.path", "/var/lib/two/data/")
if err := v.ReadInConfig(); err != nil {
return nil, err
}
v.ReadInConfig()
var cfg Config
if err := v.Unmarshal(&cfg); err != nil {