Skip to content

Commit b086bc8

Browse files
committed
Remove levelup compatibility check
Category: removal
1 parent c2426bb commit b086bc8

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

index.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,7 @@ const kContext = Symbol('context')
1111
const kLocation = Symbol('location')
1212

1313
class ClassicLevel extends AbstractLevel {
14-
constructor (location, options, _) {
15-
// To help migrating to abstract-level
16-
// TODO (v2): remove
17-
if (typeof options === 'function' || typeof _ === 'function') {
18-
throw new ModuleError('The levelup-style callback argument has been removed', {
19-
code: 'LEVEL_LEGACY'
20-
})
21-
}
22-
14+
constructor (location, options) {
2315
if (typeof location !== 'string' || location === '') {
2416
throw new TypeError("The first argument 'location' must be a non-empty string")
2517
}

0 commit comments

Comments
 (0)