mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-28 06:58:54 +00:00
append events without return value
This commit is contained in:
@@ -14,7 +14,7 @@ type PasswordComplexityPolicyReadModel struct {
|
||||
policy.PasswordComplexityPolicyReadModel
|
||||
}
|
||||
|
||||
func (rm *PasswordComplexityPolicyReadModel) AppendEvents(events ...eventstore.EventReader) (err error) {
|
||||
func (rm *PasswordComplexityPolicyReadModel) AppendEvents(events ...eventstore.EventReader) {
|
||||
for _, event := range events {
|
||||
switch e := event.(type) {
|
||||
case *PasswordComplexityPolicyAddedEvent:
|
||||
@@ -25,7 +25,6 @@ func (rm *PasswordComplexityPolicyReadModel) AppendEvents(events ...eventstore.E
|
||||
rm.ReadModel.AppendEvents(e)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type PasswordComplexityPolicyAddedEvent struct {
|
||||
|
||||
Reference in New Issue
Block a user