Skip to content

Conversation

@DenielGrin
Copy link
Contributor

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

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

@DenielGrin DenielGrin 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
Contributor

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
Contributor

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.

3 participants