Skip to content

Commit

Permalink
removes body assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Orry Baram committed Nov 1, 2016
1 parent a2d1d47 commit 44a27d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ function convertToAppleNews (articleJson, opts) {
assert(articleJson.title, 'articleJson.title required');
assert(Array.isArray(articleJson.body), 'articleJson.body required to be an array');

const body = renderBlockList(articleJson, opts);
const header = renderHeader(articleJson, opts);
body.unshift(header);
const components = body;
const components = renderBlockList(articleJson, opts);
components.unshift(header);

const bundlesToUrls = bundleImages(components);
const article = {
version: '1.0',
Expand Down

0 comments on commit 44a27d9

Please sign in to comment.