Skip to content

Commit

Permalink
feat: remove error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed May 17, 2024
1 parent 3341a70 commit 7ae1504
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,8 @@ func LoadConfig(config string) {
if config == "" {
config = getConfigFile("config.toml")
}
configRaw, err := os.ReadFile(config)
if err != nil {
log.Fatalf("could not read file: %v", err)
}
// ignore error since we can just use the default config
configRaw, _ := os.ReadFile(config)

if err := toml.Unmarshal(configRaw, &UserConfig); err != nil {
log.Fatalf("could not unmarshal config: %v", err)
Expand Down

0 comments on commit 7ae1504

Please sign in to comment.