improve grammar here

Signed-off-by: Odyssey <odyssey346@disroot.org>
This commit is contained in:
Odyssey 2022-09-17 23:03:47 +02:00
parent 427bec5081
commit 11a792d96c
7 changed files with 7 additions and 7 deletions

View File

@ -15,7 +15,7 @@ func AuthToken() string {
viper.AddConfigPath("./data") viper.AddConfigPath("./data")
err := viper.ReadInConfig() err := viper.ReadInConfig()
if err != nil { if err != nil {
log.Println("Error reading config for getting segfautils.auth_token", err.Error()) log.Println("Error reading config. Error getting: segfautils.auth_token", err.Error())
} }
result := viper.GetString("segfautils.auth_token") result := viper.GetString("segfautils.auth_token")
return result return result

View File

@ -11,7 +11,7 @@ func HCaptchaSecretKey() string {
viper.AddConfigPath("./data") viper.AddConfigPath("./data")
err := viper.ReadInConfig() err := viper.ReadInConfig()
if err != nil { if err != nil {
log.Println("Error reading config for getting hcaptcha.secret_key", err.Error()) log.Println("Error reading config. Error getting: hcaptcha.secret_key", err.Error())
} }
result := viper.GetString("hcaptcha.secret_key") result := viper.GetString("hcaptcha.secret_key")
return result return result

View File

@ -11,7 +11,7 @@ func HCaptchaSiteKey() string {
viper.AddConfigPath("./data") viper.AddConfigPath("./data")
err := viper.ReadInConfig() err := viper.ReadInConfig()
if err != nil { if err != nil {
log.Println("Error reading config for getting hcaptcha.site_key", err.Error()) log.Println("Error reading config. Error getting: hcaptcha.site_key", err.Error())
} }
result := viper.GetString("hcaptcha.site_key") result := viper.GetString("hcaptcha.site_key")
return result return result

View File

@ -11,7 +11,7 @@ func OptForm() string {
viper.AddConfigPath("./data") viper.AddConfigPath("./data")
err := viper.ReadInConfig() err := viper.ReadInConfig()
if err != nil { if err != nil {
log.Println("Error reading config for getting options.form", err.Error()) log.Println("Error reading config. Error getting: options.form", err.Error())
} }
result := viper.GetString("options.form") result := viper.GetString("options.form")
return result return result

View File

@ -11,7 +11,7 @@ func OptAnn() string {
viper.AddConfigPath("./data") viper.AddConfigPath("./data")
err := viper.ReadInConfig() err := viper.ReadInConfig()
if err != nil { if err != nil {
log.Println("Error reading config for getting options.announce", err.Error()) log.Println("Error reading config. Error getting: options.announce", err.Error())
} }
result := viper.GetString("options.announce") result := viper.GetString("options.announce")
return result return result

View File

@ -12,7 +12,7 @@ func Port() string {
viper.AddConfigPath("./data") viper.AddConfigPath("./data")
err := viper.ReadInConfig() err := viper.ReadInConfig()
if err != nil { if err != nil {
log.Println("Error reading config for getting segfautils.port", err.Error()) log.Println("Error reading config. Error getting: segfautils.port", err.Error())
} }
result := strconv.Itoa(viper.GetInt("segfautils.port")) result := strconv.Itoa(viper.GetInt("segfautils.port"))
return result return result

View File

@ -11,7 +11,7 @@ func WebhookURL() string {
viper.AddConfigPath("./data") viper.AddConfigPath("./data")
err := viper.ReadInConfig() err := viper.ReadInConfig()
if err != nil { if err != nil {
log.Println("Error reading config for getting segfautils.webhook_url", err.Error()) log.Println("Error reading config. Error getting: segfautils.webhook_url", err.Error())
} }
result := viper.GetString("segfautils.webhook_url") result := viper.GetString("segfautils.webhook_url")
return result return result