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

Statusor eradication #82

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

Statusor eradication #82

wants to merge 5 commits into from

Conversation

korbiniak
Copy link
Collaborator

No description provided.

Comment on lines -90 to -91
if (fields.size() <= i || i < 0) {
return absl::InvalidArgumentError("Index out of range");
Copy link
Owner

Choose a reason for hiding this comment

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

Tu chyba możemy zostawić asserta, żeby się od razu wywaliło gdyby jednak nie było in range

Comment on lines -50 to -52
absl::StatusOr<TDItem> TupleDesc::GetItem(int idx) {
if (!(0 <= idx && idx < items.size())) {
return absl::InvalidArgumentError("Index out of range");
Copy link
Owner

Choose a reason for hiding this comment

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

Tu też bym wszędzie zostawił asserty, bo jak wyjdziemy poza tablicę, ale się nie wywali od razu to to będzie nie do zbugowania

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