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

API 10.29.01 upgrade #218

Merged
merged 3 commits into from
Jun 18, 2024
Merged

API 10.29.01 upgrade #218

merged 3 commits into from
Jun 18, 2024

Conversation

rylorin
Copy link
Member

@rylorin rylorin commented Jun 18, 2024

No description provided.


if (this.serverVersion < MIN_SERVER_VER.PROFESSIONAL_CUSTOMER) {
if (professionalCustomer) {
return this.emitError(
Copy link

Choose a reason for hiding this comment

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

Avoid too many return statements within this function.

@@ -1111,6 +1157,26 @@
);
}

if (this.serverVersion < MIN_SERVER_VER.CUSTOMER_ACCOUNT) {
if (order.customerAccount) {
return this.emitError(
Copy link

Choose a reason for hiding this comment

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

Avoid too many return statements within this function.


if (this.serverVersion < MIN_SERVER_VER.PROFESSIONAL_CUSTOMER) {
if (order.professionalCustomer) {
return this.emitError(
Copy link

Choose a reason for hiding this comment

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

Avoid too many return statements within this function.

Copy link

codeclimate bot commented Jun 18, 2024

Code Climate has analyzed commit ffd36db and detected 3 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 3

View more on Code Climate.

@rylorin rylorin merged commit 08f6639 into master Jun 18, 2024
1 of 3 checks passed
@rylorin rylorin deleted the issue203b branch June 18, 2024 06:37
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.

1 participant