Skip to content

Conversation

@decemd1
Copy link
Collaborator

@decemd1 decemd1 commented Aug 8, 2023

No description provided.

data class ReceiptFfd12(

/**
* Общие проперти
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Свойства

}

receipt.apply(initializer)
return receipt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Дублирование этой функции в InitRequest и в ConfirmRequest - зачем?
Вынеси ее куда нибудь и используй где нужно.
Так же я не увидел чтобы она где-то использовалась.
Для чего она нужна, если она ни где не используется?

when (receipt) {
is ReceiptFfd105 -> (receipt as ReceiptFfd105).email = email
is ReceiptFfd12 -> (receipt as ReceiptFfd12).base.email = email
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

То же самое. Дублируются функции.
Выноси куда-то в отдельное место, зачем писать одинаковый код в разных местах?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants