优化结构
This commit is contained in:
@@ -33,10 +33,6 @@ func (r *emailRepo) email() *config.Email {
|
||||
return config.Email
|
||||
}
|
||||
|
||||
func (r *emailRepo) Enabled() bool {
|
||||
return emailEnabled(r.email())
|
||||
}
|
||||
|
||||
func (r *emailRepo) DefaultRecipients() []string {
|
||||
config := r.email()
|
||||
if config == nil || strings.TrimSpace(config.To) == "" {
|
||||
|
||||
Reference in New Issue
Block a user