(p *string, def string)
| 472 | } |
| 473 | |
| 474 | func ptrOrDefault(p *string, def string) string { |
| 475 | if p != nil && *p != "" { |
| 476 | return *p |
| 477 | } |
| 478 | return def |
| 479 | } |
| 480 | |
| 481 | func applyDiscordSettingsUpdate(s *models.Settings, req map[string]interface{}, enc *util.Encryption) { |
| 482 | if v, ok := getReqBool(req, "discord_oauth_enabled", "discordOauthEnabled"); ok { |
no outgoing calls
no test coverage detected