Skip to content

Commit

Permalink
Comment out else block from recorder settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
patfair committed Jul 19, 2024
1 parent 3cd1730 commit 4a063b7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions web/setup_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,11 @@ func (web *Web) settingsPostHandler(w http.ResponseWriter, r *http.Request) {
match, _ := regexp.MatchString(recAddrEntryPattern, eventSettings.RecorderAddressesRaw)
if match {
eventSettings.RecorderAddresses = strings.Split(strings.ReplaceAll(eventSettings.RecorderAddressesRaw, "\r", ""), "\n")
} else {
web.renderSettings(w, r, "Recorder address entry error. Please ensure all addresses entered correctly.")
return
}
//else {
// web.renderSettings(w, r, "Recorder address entry error. Please ensure all addresses entered correctly.")
// return
//}

eventSettings.WarmupDurationSec, _ = strconv.Atoi(r.PostFormValue("warmupDurationSec"))
eventSettings.AutoDurationSec, _ = strconv.Atoi(r.PostFormValue("autoDurationSec"))
Expand Down

0 comments on commit 4a063b7

Please sign in to comment.