[#316] cmd/cli: Close location database after locode info cmd execution
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
38466d5173
commit
cdab2fc520
1 changed files with 2 additions and 0 deletions
|
@ -156,6 +156,8 @@ var (
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
defer targetDB.Close()
|
||||||
|
|
||||||
record, err := locodedb.LocodeRecord(targetDB, locodeInfoCode)
|
record, err := locodedb.LocodeRecord(targetDB, locodeInfoCode)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue