From 3a0ab5ba92f7daeba0702f7e344b2b351d6c3d10 Mon Sep 17 00:00:00 2001 From: vaibhav bisht Date: Sat, 16 Sep 2023 12:13:26 +0530 Subject: [PATCH] refactor: removed redundant log --- pkg/quiz/database/db.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/quiz/database/db.go b/pkg/quiz/database/db.go index 3906cf7..1d6b572 100644 --- a/pkg/quiz/database/db.go +++ b/pkg/quiz/database/db.go @@ -28,7 +28,6 @@ func IntializeQuiz() *Quiz { db, err := create() if err != nil { - log.Fatal(err) log.Panic(err) } @@ -81,7 +80,6 @@ func (quiz *Quiz) BulkInsert(quizData []quiz.QuizContent) { stmt, err := quiz.DB.Prepare(quizInsertQuery) if err != nil { - log.Fatal(err) log.Panic(err) } @@ -90,7 +88,6 @@ func (quiz *Quiz) BulkInsert(quizData []quiz.QuizContent) { for _, data := range quizData { _, err := stmt.Exec(data.Question, data.Answer) if err != nil { - log.Fatal(err) log.Panic(err) } }