Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: tweak linter error

Steven8fd5365ac10b
diff --git a/bin/memos/main.go b/bin/memos/main.go
index f2e8d6c0a..62a302199 100644
--- a/bin/memos/main.go
+++ b/bin/memos/main.go
@@ -140,7 +140,9 @@ func init() {
viper.SetEnvPrefix("memos")
viper.AutomaticEnv()
- viper.BindEnv("password-auth", "MEMOS_PASSWORD_AUTH")
+ if err := viper.BindEnv("password-auth", "MEMOS_PASSWORD_AUTH"); err != nil {
+ panic(err)
+ }
viper.SetDefault("mode", "demo")
viper.SetDefault("driver", "sqlite")