We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
levelup
1 parent c2426bb commit b086bc8Copy full SHA for b086bc8
index.js
@@ -11,15 +11,7 @@ const kContext = Symbol('context')
11
const kLocation = Symbol('location')
12
13
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
-
+ constructor (location, options) {
23
if (typeof location !== 'string' || location === '') {
24
throw new TypeError("The first argument 'location' must be a non-empty string")
25
}
0 commit comments