Skip to content

Commit f0ead38

Browse files
committed
fix: change arg type
1 parent 71dc0e0 commit f0ead38

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

api/projects/tasks.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ func AddTask(w http.ResponseWriter, r *http.Request) {
5353
if errors.Is(err, common_errors.ErrInvalidSubscription) {
5454
helpers.WriteErrorStatus(w, "No active subscription available.", http.StatusForbidden)
5555
return
56-
} else if err != nil {
56+
}
57+
58+
if err != nil {
5759
log.WithFields(log.Fields{
5860
"context": "AddTask",
5961
"project_id": project.ID,

0 commit comments

Comments
 (0)