From 75547d606a540d69478a0ac302d813c10598c75b Mon Sep 17 00:00:00 2001 From: Reinaldy Rafli Date: Wed, 30 Jun 2021 23:01:13 +0700 Subject: [PATCH] docs: tabs to space --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 8b758f3..5be13d1 100644 --- a/README.md +++ b/README.md @@ -25,18 +25,18 @@ func main() { // Check if a table is exists sql, args, err = bob.HasTable("users").PlaceholderFormat(bob.Dollar).ToSQL() - if err != nil { - log.Fatal(err) - } + if err != nil { + log.Fatal(err) + } var hasTableUsers bool err = db.QueryRow(context.Background(), sql, args...).Scan(&hasTableUsers) if err != nil { if err.Error() == "no rows in result set" { - hasTableUsers = false - } else { - log.Fatal(err) - } + hasTableUsers = false + } else { + log.Fatal(err) + } } if !hasTableUsers { @@ -57,9 +57,9 @@ func main() { splitQuery := strings.Split(sql, ";") for i := range splitQuery { _, err = db.Query(context.Background(), splitQuery[i]) - if err != nil { + if err != nil { log.Fatal(err) - } + } } } }