Commit 2dceaa4a1e9af879885c4b6a6b4a93d73ae64a65
remove unnecessary function name
Ev Bogue committed on 8/18/2016, 9:32:21 PMParent: a2cf3fa96e227c0ae4246875768dbf9607d4120e
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -10,9 +10,8 @@ | ||
10 | 10 | var message = 'I said nothing'; |
11 | 11 | var date = 'Today!'; |
12 | 12 | |
13 | 13 | app.use(router.routes()) |
14 | -app.use(router.allowedMethods()) | |
15 | 14 | |
16 | 15 | var render = views(__dirname, { ext: 'jade'}); |
17 | 16 | |
18 | 17 | router.get('/', function *(next) { |
@@ -24,9 +23,9 @@ | ||
24 | 23 | id: me, |
25 | 24 | limit: 1, |
26 | 25 | reverse: true |
27 | 26 | }), |
28 | - pull.drain(function printMessage(msg) { | |
27 | + pull.drain(function (msg) { | |
29 | 28 | date = moment(msg.value.timestamp).fromNow() |
30 | 29 | if (msg.value.content.type === 'post') { |
31 | 30 | message = (msg.value.content.text) |
32 | 31 | } |
Built with git-ssb-web