Fix: reindent single then
This commit is contained in:
parent
8d19e0b09a
commit
92b01e19e8
|
@ -50,17 +50,16 @@ var usercssHelper = (() => {
|
|||
if (style.reason === 'config' && style.id) {
|
||||
return style;
|
||||
}
|
||||
return findDup(style)
|
||||
.then(dup => {
|
||||
if (dup) {
|
||||
style.id = dup.id;
|
||||
if (style.reason !== 'config') {
|
||||
// preserve style.vars during update
|
||||
usercss.assignVars(style, dup);
|
||||
}
|
||||
return findDup(style).then(dup => {
|
||||
if (dup) {
|
||||
style.id = dup.id;
|
||||
if (style.reason !== 'config') {
|
||||
// preserve style.vars during update
|
||||
usercss.assignVars(style, dup);
|
||||
}
|
||||
return style;
|
||||
});
|
||||
}
|
||||
return style;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -16,11 +16,10 @@ function createSourceLoader() {
|
|||
}
|
||||
|
||||
function load() {
|
||||
return fetchText(location.href)
|
||||
.then(newSource => {
|
||||
source = newSource;
|
||||
return source;
|
||||
});
|
||||
return fetchText(location.href).then(newSource => {
|
||||
source = newSource;
|
||||
return source;
|
||||
});
|
||||
}
|
||||
|
||||
function watch(cb) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user