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

[GAIAPLAT-908] Correct typo in forbidden_sydtem_db_operation exception name #651

Merged
merged 3 commits into from
May 3, 2021

Conversation

chuan
Copy link
Contributor

@chuan chuan commented May 3, 2021

No description provided.

@chuan chuan requested a review from LaurentiuCristofor May 3, 2021 23:27
@@ -34,7 +34,7 @@ void use_database(const string& name)
{
if (is_system_db(name))
Copy link
Contributor

Choose a reason for hiding this comment

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

You could move this entire check inside a helper method and just call that:

inline void check_not_system_db(const string& name)
{
    if (is_system_db(db_name))
    {
        throw forbidden_system_db_operation(db_name);
    }
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good suggestion. Updated.

@chuan chuan merged commit f67554c into master May 3, 2021
@chuan chuan deleted the GAIAPLAT-908-typo branch May 3, 2021 23:42
Copy link
Contributor

@LaurentiuCristofor LaurentiuCristofor left a comment

Choose a reason for hiding this comment

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

Still looks good.

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