Commit 84817d53 authored by Laurent Wouters's avatar Laurent Wouters
Browse files

[clean] Cleanup unnecessary typing

parent dfe37c413b73
......@@ -149,7 +149,7 @@ function fetchDescriptors(
if (source.kind === ViewRegistrySourceKind.inline) {
return new Promise<ViewDescriptor[]>(
(
resolve: (result: ViewDescriptor[] | Promise<ViewDescriptor[]>) => void,
resolve: (result: ViewDescriptor[]) => void,
reject: (reason: string) => void
) => {
resolve((source as ViewRegistrySourceInline).descriptors);
......@@ -158,7 +158,7 @@ function fetchDescriptors(
} else if (source.kind === ViewRegistrySourceKind.remote) {
return new Promise<ViewDescriptor[]>(
(
resolve: (result: ViewDescriptor[] | Promise<ViewDescriptor[]>) => void,
resolve: (result: ViewDescriptor[]) => void,
reject: (reason: string) => void
) => {
let xmlHttp = new XMLHttpRequest();
......@@ -183,7 +183,7 @@ function fetchDescriptors(
} else {
return new Promise<ViewDescriptor[]>(
(
resolve: (result: ViewDescriptor[] | Promise<ViewDescriptor[]>) => void,
resolve: (result: ViewDescriptor[]) => void,
reject: (reason: string) => void
) => {
reject("Invalid source");
......@@ -222,9 +222,9 @@ function loadDescriptors(
.catch((reason: string) => {
console.log(
"Failed to fetch descriptor from source " +
source.name +
": " +
reason
source.name +
": " +
reason
);
onPartFinished();
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment