Skip to content

Cleaned up blueprint.js#537

Merged
rwjblue merged 1 commit intoember-cli:masterfrom
crismali:cleanup-blueprint-js
Apr 30, 2014
Merged

Cleaned up blueprint.js#537
rwjblue merged 1 commit intoember-cli:masterfrom
crismali:cleanup-blueprint-js

Conversation

@crismali
Copy link
Contributor

  • removed unnecessary assignment
  • removed unnecessary writefile function that just swapped arguments
  • made double iteration in processFiles method a simple reduce

@twokul
Copy link
Contributor

twokul commented Apr 30, 2014

doesn't merge cleanly, mind rebasing?

lib/blueprint.js Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

needsConfirmation maybe?

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

Choose a reason for hiding this comment

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

the naming is strange, as the function also has side effects.
I think @twokul's suggestion might make more sense.

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed. Actually the old .filter() -> .map() way wasn't that bad.

@rwjblue
Copy link
Member

rwjblue commented Apr 30, 2014

@crismali - Can you squash the commits?

@crismali
Copy link
Contributor Author

@rjackson sure thing

* removed unnecessary assignment
* removed unnecessary writefile function that just swapped arguments
* made double iteration in processFiles method a simple reduce
* update changelog to reflect changes
rwjblue added a commit that referenced this pull request Apr 30, 2014
@rwjblue rwjblue merged commit f5cd8df into ember-cli:master Apr 30, 2014
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@MajorBreakfast
Copy link
Contributor

@crismali 👍

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.

5 participants