From a308c0a7a2d2c56f752d51e705abffdbd62e1eff Mon Sep 17 00:00:00 2001 From: Reinaldy Rafli Date: Mon, 8 Nov 2021 17:01:43 +0700 Subject: [PATCH] style: nitpicking on semicolons --- api/core/administrator/init_test.go | 2 +- api/core/joke/init_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/core/administrator/init_test.go b/api/core/administrator/init_test.go index 9f656b1..1814fdc 100644 --- a/api/core/administrator/init_test.go +++ b/api/core/administrator/init_test.go @@ -113,7 +113,7 @@ func Flush() error { } defer conn.Release() - _, err = conn.Exec(context.Background(), "TRUNCATE TABLE administrators;") + _, err = conn.Exec(context.Background(), "TRUNCATE TABLE administrators") if err != nil { return err } diff --git a/api/core/joke/init_test.go b/api/core/joke/init_test.go index fbcfd64..edf24c0 100644 --- a/api/core/joke/init_test.go +++ b/api/core/joke/init_test.go @@ -165,15 +165,15 @@ func Flush() error { } defer conn.Release() - _, err = conn.Exec(context.Background(), "TRUNCATE TABLE submission;") + _, err = conn.Exec(context.Background(), "TRUNCATE TABLE submission") if err != nil { return err } - _, err = conn.Exec(context.Background(), "TRUNCATE TABLE jokesbapak2;") + _, err = conn.Exec(context.Background(), "TRUNCATE TABLE jokesbapak2") if err != nil { return err } - _, err = conn.Exec(context.Background(), "TRUNCATE TABLE administrators;") + _, err = conn.Exec(context.Background(), "TRUNCATE TABLE administrators") if err != nil { return err }