Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/connect in app notification #78

Merged
merged 22 commits into from
Dec 2, 2024

Conversation

DanielGreenEngineer
Copy link
Contributor

@DanielGreenEngineer DanielGreenEngineer self-assigned this Nov 21, 2024
@DanielGreenEngineer
Copy link
Contributor Author

Пруфы.
Screenshot 2024-11-22 at 2 53 20 PM
Screenshot 2024-11-22 at 2 53 45 PM

@DanielGreenEngineer DanielGreenEngineer marked this pull request as ready for review November 22, 2024 13:02
Comment on lines +8 to +14
private val message: String? = null,
) {

fun logError() {
Log.e(
/* tag = */ tag,
/* msg = */ "Error caught in $functionName : $message"
/* msg = */ "Field is empty or null in $functionName : $message"
Copy link
Member

Choose a reason for hiding this comment

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

фиговый паттерн, так как пустое поле и nulled - разные состояния, это две разные ошибки, постарайся всегда декомпозировать такое состояние

message = "Error mapping CloseAction",
exception = exception
)
null
Copy link
Member

Choose a reason for hiding this comment

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

возвращать null - один из древнейших антипаттернов, подумай над этим в будущем

@TorinAsakura TorinAsakura merged commit f77bb6b into master Dec 2, 2024
1 check passed
@TorinAsakura TorinAsakura deleted the feat/connect-in-app-notification branch December 2, 2024 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants