Skip to content

Commit

Permalink
Simplify get.
Browse files Browse the repository at this point in the history
See #375
  • Loading branch information
flatheadmill committed Sep 2, 2014
1 parent ebfcc5e commit 93ae0e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1099,9 +1099,10 @@ function Strata (options) {

descents.shift()

// to user land
function get (index, callback) {
stash(page, index, validate(callback, function (entry, size) {
rescue.callback(callback, null, entry.record, entry.key, size)
callback(null, entry.record, entry.key, size)
}))
}

Expand Down

0 comments on commit 93ae0e3

Please sign in to comment.