fix: formatting and catching an error
This commit is contained in:
parent
715730c3df
commit
f09916f44e
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
./leech
|
@ -32,6 +32,9 @@ func Init() {
|
|||||||
defer fh.Close()
|
defer fh.Close()
|
||||||
|
|
||||||
decoder := json.NewDecoder(fh)
|
decoder := json.NewDecoder(fh)
|
||||||
decoder.Decode(&Config)
|
err = decoder.Decode(&Config)
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user