From a64fcfb0960d3d008b043b9a288913da311ebf54 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sat, 24 Jun 2023 10:40:49 -0400 Subject: [PATCH] update lint --- storage/postgres.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/storage/postgres.go b/storage/postgres.go index 244b0a5..5a3f43c 100644 --- a/storage/postgres.go +++ b/storage/postgres.go @@ -18,7 +18,10 @@ func Connect(config model.DBConfig) (*model.Repository, error) { if err != nil { return nil, err } - runMigrations(db) + err = runMigrations(db) + if err != nil { + return nil, err + } return &model.Repository{ DB: db, }, nil