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