fix: formatting and catching an error

This commit is contained in:
Louis Dalibard 2024-06-10 19:50:11 +02:00
parent 715730c3df
commit f09916f44e
3 changed files with 5 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
./leech

View File

@ -32,6 +32,9 @@ func Init() {
defer fh.Close()
decoder := json.NewDecoder(fh)
decoder.Decode(&Config)
err = decoder.Decode(&Config)
if err != nil {
panic(err)
}
}
}

BIN
leech

Binary file not shown.