Skip to content

Commit e87e966

Browse files
committed
return path joined with db filename in dbpath method.
1 parent 9d4aec9 commit e87e966

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tv/tv.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,6 @@ func DBPath() string {
340340
log.Fatal(err)
341341
}
342342
path = filepath.Join(path, "nip")
343-
fmt.Println(path)
344343
if _, err := os.Stat(filepath.Join(path, NipDB)); os.IsNotExist(err) {
345344
err := os.MkdirAll(path, os.ModePerm)
346345
if err != nil {
@@ -351,5 +350,5 @@ func DBPath() string {
351350
log.Fatal(err)
352351
}
353352
}
354-
return path
353+
return filepath.Join(path, NipDB)
355354
}

0 commit comments

Comments
 (0)