From c0e263e58e08d6c7f29ca8b03fdd00e740e17faf Mon Sep 17 00:00:00 2001 From: qianxi Date: Wed, 6 Nov 2024 18:55:47 +0800 Subject: [PATCH] update --- .gitignore | 1 - app/controller/problem_set.go | 2 +- main.go | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 1a577dc6..99c0d65e 100644 --- a/.gitignore +++ b/.gitignore @@ -20,7 +20,6 @@ main /coverage* /test.* /config.yml -*.eduoj-backend /testing_requests /EduOJBackend diff --git a/app/controller/problem_set.go b/app/controller/problem_set.go index a0a9f08d..8ff75df9 100644 --- a/app/controller/problem_set.go +++ b/app/controller/problem_set.go @@ -20,7 +20,7 @@ func CreateProblemSet(c echo.Context) error { req := request.CreateProblemSetRequest{} err, ok := utils.BindAndValidate(&req, c) if !ok { - return err //aaa + return err } class := models.Class{} if err := base.DB.First(&class, c.Param("id")).Error; err != nil { diff --git a/main.go b/main.go index 4dc42928..4beb4174 100644 --- a/main.go +++ b/main.go @@ -18,7 +18,7 @@ func main() { parse() if len(args) < 1 { log.Fatal("Please specific a command to run.") - // TODO: output usage aa + // TODO: output usage os.Exit(-1) } switch args[0] {