Skip to content

2721147 added small if statement#379

Closed
haringsrob wants to merge 1 commit into
drupalcommerce:8.x-2.xfrom
haringsrob:2721147-check-for-route
Closed

2721147 added small if statement#379
haringsrob wants to merge 1 commit into
drupalcommerce:8.x-2.xfrom
haringsrob:2721147-check-for-route

Conversation

@haringsrob

Copy link
Copy Markdown
Contributor

No description provided.

@haringsrob haringsrob force-pushed the 2721147-check-for-route branch from ce07d2e to ea7cea5 Compare May 9, 2016 11:18
@haringsrob haringsrob force-pushed the 2721147-check-for-route branch from ea7cea5 to 28c1375 Compare May 9, 2016 11:22
@bojanz

bojanz commented May 9, 2016

Copy link
Copy Markdown
Contributor

You don't want to wrap an entire method in an IF statement, the resulting indentation makes code hard to read. Instead, return early (if there's no order)

@bojanz

bojanz commented May 9, 2016

Copy link
Copy Markdown
Contributor

Pushed a fix in 61ed1db.

@bojanz bojanz closed this May 9, 2016
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