Skip to content

docs(either-errors): either & errors #3

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kgajowy
Copy link
Contributor

@kgajowy kgajowy commented Aug 6, 2021

No description provided.

if (isbn !== outOfStockIsbn && isbn !== limitReachedIsbn) {
return left(TimeLimitExceeded);
}
return right(undefined);
Copy link

Choose a reason for hiding this comment

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

right() or right(null) or right(void 0) ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

right() sygnalizuje błąd kontrolera.

null może być, ale jaka jest motywacja/przewaga?

@kgajowy kgajowy force-pushed the docs/either-and-errors branch from 3ac871e to 73a5fa1 Compare August 9, 2021 07:33
@kgajowy kgajowy changed the title docs(either-errors): initial nest app docs(either-errors): either & errors Aug 9, 2021
@kgajowy kgajowy marked this pull request as ready for review August 9, 2021 07:57
@kgajowy kgajowy requested review from Sikora00 and Dyostiq August 9, 2021 07:57
@kgajowy kgajowy force-pushed the docs/either-and-errors branch from cc2fbe6 to 77f29c6 Compare August 9, 2021 07:58
@kgajowy kgajowy force-pushed the docs/either-and-errors branch from 77f29c6 to 990aa04 Compare August 9, 2021 07:59
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