entities/line_task.go
LineTask
has 24 methods (exceeds 20 allowed). Consider refactoring. Open
Open
type LineTask struct {
Base
Persistence
TaskType LineTaskType `gorm:"not null" json:"type"`
Method LineTask.Resolve
has 52 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (lt *LineTask) Resolve(args ...Entity) {
for _, raw := range args {
switch obj := raw.(type) {
case *Player:
lt.O = obj