aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorKushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com>2021-08-19 13:19:11 -0300
committerKushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com>2021-08-19 13:19:11 -0300
commit149b885f10011c0cb9fd49bc162165d4ecff4331 (patch)
tree9ba48446cbf3068438fd1dd512b194ffdf299a9b /main.go
parent90bcb54980998c757059957d218e2cf1899e462d (diff)
go fmt, go vet
Diffstat (limited to 'main.go')
-rw-r--r--main.go19
1 files changed, 2 insertions, 17 deletions
diff --git a/main.go b/main.go
index 9c7f429..abce30d 100644
--- a/main.go
+++ b/main.go
@@ -13,6 +13,7 @@ import (
"html/template"
"io"
"io/ioutil"
+ "log"
"math/rand"
"mime/multipart"
"net/http"
@@ -24,7 +25,6 @@ import (
"strconv"
"strings"
"time"
- "log"
)
var Port = ":" + GetConfigValue("instanceport", "3000")
@@ -631,7 +631,7 @@ func main() {
adminData.AutoSubscribe = GetActorAutoSubscribeDB(db, actor.Id)
- adminData.Themes = &Themes;
+ adminData.Themes = &Themes
err := t.ExecuteTemplate(w, "layout", adminData)
if err != nil {
@@ -993,9 +993,6 @@ func main() {
http.Redirect(w, r, "/"+board, http.StatusSeeOther)
return
}
-
- w.WriteHeader(http.StatusBadRequest)
- w.Write([]byte(""))
})
http.HandleFunc("/deleteattach", func(w http.ResponseWriter, r *http.Request) {
@@ -1067,9 +1064,6 @@ func main() {
http.Redirect(w, r, OP, http.StatusSeeOther)
return
}
-
- w.WriteHeader(http.StatusBadRequest)
- w.Write([]byte(""))
})
http.HandleFunc("/marksensitive", func(w http.ResponseWriter, r *http.Request) {
@@ -1124,9 +1118,6 @@ func main() {
http.Redirect(w, r, OP, http.StatusSeeOther)
return
}
-
- w.WriteHeader(http.StatusBadRequest)
- w.Write([]byte(""))
})
http.HandleFunc("/remove", func(w http.ResponseWriter, r *http.Request) {
@@ -1181,9 +1172,6 @@ func main() {
http.Redirect(w, r, "/"+board, http.StatusSeeOther)
return
}
-
- w.WriteHeader(http.StatusBadRequest)
- w.Write([]byte(""))
})
http.HandleFunc("/removeattach", func(w http.ResponseWriter, r *http.Request) {
@@ -1228,9 +1216,6 @@ func main() {
http.Redirect(w, r, OP, http.StatusSeeOther)
return
}
-
- w.WriteHeader(http.StatusBadRequest)
- w.Write([]byte(""))
})
http.HandleFunc("/report", func(w http.ResponseWriter, r *http.Request) {