aboutsummaryrefslogtreecommitdiff
path: root/hotline/server.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2022-05-31 11:55:47 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2022-05-31 11:55:47 -0700
commit0197c3f5f7ac92d83711d28739670cba2e018701 (patch)
tree8e9a4d77f785329b30fd8ec4c90ca8e473677c3b /hotline/server.go
parent3a6449909263128b8d7e60194031db0eff81b3f2 (diff)
Update dependencies
Diffstat (limited to 'hotline/server.go')
-rw-r--r--hotline/server.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/hotline/server.go b/hotline/server.go
index 90b7ea0..067cf9f 100644
--- a/hotline/server.go
+++ b/hotline/server.go
@@ -20,7 +20,7 @@ import (
"sync"
"time"
- "gopkg.in/yaml.v2"
+ "gopkg.in/yaml.v3"
)
const (
@@ -395,7 +395,6 @@ func (s *Server) loadThreadedNews(threadedNewsPath string) error {
return err
}
decoder := yaml.NewDecoder(fh)
- decoder.SetStrict(true)
return decoder.Decode(s.ThreadedNews)
}
@@ -419,7 +418,6 @@ func (s *Server) loadAccounts(userDir string) error {
account := Account{}
decoder := yaml.NewDecoder(fh)
- decoder.SetStrict(true)
if err := decoder.Decode(&account); err != nil {
return err
}
@@ -436,7 +434,6 @@ func (s *Server) loadConfig(path string) error {
}
decoder := yaml.NewDecoder(fh)
- decoder.SetStrict(true)
err = decoder.Decode(s.Config)
if err != nil {
return err