mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
update arguments object to rest args and remove array.from(s)
This commit is contained in:
@@ -618,7 +618,7 @@ class Config {
|
||||
let keyPath, options, scope
|
||||
if (args.length > 1) {
|
||||
if ((typeof args[0] === 'string') || (args[0] == null)) {
|
||||
[keyPath, options] = args;
|
||||
[keyPath, options] = Array.from(args);
|
||||
({scope} = options)
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user