From 14d4a51e6ccfcc6624ed0ab675d76d4a6d6634ca Mon Sep 17 00:00:00 2001 From: Josh Burgess Date: Mon, 25 Apr 2016 18:13:40 -0400 Subject: [PATCH] Use object literal property value shorthand consistently All action functions returned objects using the property value shorthand for the 'reddit' key & value except for 'receivePosts'. I updated it simply for consistency. I think it was just an oversight. --- examples/async/actions/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/async/actions/index.js b/examples/async/actions/index.js index b3c32cd68d..6553788c63 100644 --- a/examples/async/actions/index.js +++ b/examples/async/actions/index.js @@ -29,7 +29,7 @@ function requestPosts(reddit) { function receivePosts(reddit, json) { return { type: RECEIVE_POSTS, - reddit: reddit, + reddit, posts: json.data.children.map(child => child.data), receivedAt: Date.now() }