Skip to content

Commit

Permalink
refactor: removed redundant log
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhav135 committed Sep 16, 2023
1 parent 139323c commit 3a0ab5b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/quiz/database/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ func IntializeQuiz() *Quiz {
db, err := create()

if err != nil {
log.Fatal(err)
log.Panic(err)
}

Expand Down Expand Up @@ -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)
}

Expand All @@ -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)
}
}
Expand Down

0 comments on commit 3a0ab5b

Please sign in to comment.