fixed leaking info, plus go fmt
This commit is contained in:
@@ -54,8 +54,8 @@ func check_password(filename, attempt string) (result bool) {
|
||||
}
|
||||
|
||||
func loadChildren(filename string) (children []Child) {
|
||||
dbMutex.RLock()
|
||||
defer dbMutex.RUnlock()
|
||||
dbMutex.RLock()
|
||||
defer dbMutex.RUnlock()
|
||||
b, err := ioutil.ReadFile(filename)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user