Skip to content

Commit

Permalink
Remove levelup compatibility check
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Feb 3, 2024
1 parent fb7273a commit 01c2a2d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ const kLocation = Symbol('location')

class ClassicLevel extends AbstractLevel {
constructor (location, options, _) {
// To help migrating to abstract-level
// TODO (v2): remove
if (typeof options === 'function' || typeof _ === 'function') {
throw new ModuleError('The levelup-style callback argument has been removed', {
code: 'LEVEL_LEGACY'
})
}

if (typeof location !== 'string' || location === '') {
throw new TypeError("The first argument 'location' must be a non-empty string")
}
Expand Down

0 comments on commit 01c2a2d

Please sign in to comment.