Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra committed Jul 19, 2023
1 parent a7eea72 commit 016fc15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/offline.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ var GoOffline = &cobra.Command{

// Run in embedded mode once to download the postgres binary
databaseDir := "/app/temp-database-dir"
os.Mkdir(databaseDir, 0755)
if err := os.Mkdir(databaseDir, 0755); err != nil {
logger.Fatalf("Failed to create database directory[%s]: %+v", err)
}
defer os.RemoveAll(databaseDir)

db.ConnectionString = "embedded://" + databaseDir
Expand Down

0 comments on commit 016fc15

Please sign in to comment.