inklabs/rangedb

View on GitHub
examples/chat/user_aggregate_gen.go

Summary

Maintainability
A
30 mins
Test Coverage

Showing 1 of 1 total issue

Similar blocks of code found in 2 locations. Consider refactoring.
Open

func (a *user) Load(recordIterator rangedb.RecordIterator) {
for recordIterator.Next() {
if recordIterator.Err() == nil {
if event, ok := recordIterator.Record().Data.(rangedb.Event); ok {
a.apply(event)
Severity: Minor
Found in examples/chat/user_aggregate_gen.go and 1 other location - About 30 mins to fix
examples/chat/room_aggregate_gen.go on lines 11..19
Category
Status