Skip to content

Commit

Permalink
Renamed createDB to initDB (more explicit)
Browse files Browse the repository at this point in the history
  • Loading branch information
Max13 committed Jun 25, 2018
1 parent e516c7a commit d1e76d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dashing.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func build(c *cli.Context) {
if len(dashing.Icon32x32) > 0 {
addIcon(dashing.Icon32x32, name+".docset/icon.png")
}
db, err := createDB(name, true)
db, err := initDB(name, true)
if err != nil {
fmt.Printf("Failed to create database: %s\n", err)
return
Expand Down Expand Up @@ -273,7 +273,7 @@ func update(c *cli.Context) {
if len(dashing.Icon32x32) > 0 {
addIcon(dashing.Icon32x32, name+".docset/icon.png")
}
db, err := createDB(name, false)
db, err := initDB(name, false)
if err != nil {
fmt.Printf("Failed to create database: %s\n", err)
return
Expand Down Expand Up @@ -394,7 +394,7 @@ func addPlist(name string, config *Dashing) {
ioutil.WriteFile(name+".docset/Contents/Info.plist", file.Bytes(), 0755)
}

func createDB(name string, fresh bool) (*sql.DB, error) {
func initDB(name string, fresh bool) (*sql.DB, error) {
dbname := name + ".docset/Contents/Resources/docSet.dsidx"

if fresh {
Expand Down

0 comments on commit d1e76d2

Please sign in to comment.