Skip to content

Commit

Permalink
Fix setupDB() to return error type
Browse files Browse the repository at this point in the history
  • Loading branch information
davidianstyle committed Feb 22, 2024
1 parent 0111bca commit f58fbb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func main() {
router.Run(":8080")
}

func setupDB() {
func setupDB() error {
connectionString := os.Getenv("DB_CONNECTION_STRING")

if connectionString == "" {
Expand Down

0 comments on commit f58fbb2

Please sign in to comment.