Skip to content
Myr

Fixed ternary style

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent 780ec5c · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:lib/express/plugins/cache.js+3 added-3 removed
110 unmodified lines
111 112 get: function(key) {113 exports.Store.prototype.get.apply(this, arguments)114 if (key.indexOf('*') === -1)115 return this.data[key] instanceof Cache ?116 this.data[key].val :117 null115 return this.data[key] instanceof Cache116 ? this.data[key].val117 : null118 var regexp = this.normalize(key) 119 return this.data.reduce(function(vals, cache){120 if (regexp.test(cache.key))121 vals[cache.key] = cache.val
96 unmodified lines