Skip to content

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 Dyostiq and Sikora00 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.

3 participants