diff options
author | Grail Finder <wohilas@gmail.com> | 2024-04-01 17:04:28 +0400 |
---|---|---|
committer | Grail Finder <wohilas@gmail.com> | 2024-04-01 17:04:28 +0400 |
commit | 878b071112d7484fd9b22d70ee06afe895de9018 (patch) | |
tree | 51536ea1e822c1e5331b0b520bb6b5095b01eb14 /internal/handlers | |
parent | fe5d588e2b32db1d079bc81cdac0857e535c0222 (diff) |
Chore: style change
Diffstat (limited to 'internal/handlers')
-rw-r--r-- | internal/handlers/main.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/handlers/main.go b/internal/handlers/main.go index 4abc8e1..38da212 100644 --- a/internal/handlers/main.go +++ b/internal/handlers/main.go @@ -58,7 +58,8 @@ func (h *Handlers) HandleForm(w http.ResponseWriter, r *http.Request) { h.log.Info("got postform request", "payload", r.PostForm) magnitude := uint8(1) mS := r.PostFormValue("magnitude") - if mS != "1" || mS != "" || mS != " " { + h.log.Info("showing magnitude send", "mS", mS) + if mS != "1" { u64, err := strconv.ParseUint(mS, 10, 64) magnitude = uint8(u64) if err != nil { |