Skip to content

Commit 43b5717

Browse files
author
Christian Schuff
committed
lint fixes
1 parent 721e95c commit 43b5717

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/Options.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ const log = Minilog('ui5-schemas');
1010

1111
class Options {
1212
constructor(options) {
13-
if (options.origin) {
13+
this.options = options;
14+
15+
if (this.options.origin) {
1416
// ignore sdk/version if origin is provided
15-
delete options.version;
16-
delete options.sdk;
17-
} else if (options.sdk === 'openui5nightly') {
17+
delete this.options.version;
18+
delete this.options.sdk;
19+
} else if (this.options.sdk === 'openui5nightly') {
1820
// ignore version if openui5nightly
19-
delete options.version;
21+
delete this.options.version;
2022
}
21-
22-
this.options = options;
2323
}
2424

2525
async initialize() {

0 commit comments

Comments
 (0)