Open source AI coding agent. Designed for large projects and real world tasks.
Go aiai-agentsai-developer-toolsai-toolsclicommand-linedeveloper-toolsgitgolanggpt-4llmopenaipolyglot-programmingterminalterminal-basedterminal-ui
fix:constant conditions
songzhibin97d8dbe54df5f1
diff --git a/app/server/handlers/projects.go b/app/server/handlers/projects.goindex 3a21c9cc..e083738a 100644--- a/app/server/handlers/projects.go+++ b/app/server/handlers/projects.go@@ -171,12 +171,6 @@ func ProjectSetPlanHandler(w http.ResponseWriter, r *http.Request) {// update statement here -- need auth / current user id- if err != nil {- log.Printf("Error updating project: %v\n", err)- http.Error(w, "Error updating project: "+err.Error(), http.StatusInternalServerError)- return- }-log.Println("Successfully set project plan", projectId)}diff --git a/app/server/handlers/sessions.go b/app/server/handlers/sessions.goindex 3d9dc3f9..79f418a0 100644--- a/app/server/handlers/sessions.go+++ b/app/server/handlers/sessions.go@@ -129,7 +129,7 @@ func SignInHandler(w http.ResponseWriter, r *http.Request) {return}- if user != nil && user.IsTrial {+ if user.IsTrial {log.Printf("Trial user can't sign in: %v\n", req.Email)http.Error(w, "Trial user can't sign in", http.StatusForbidden)return