Skip to content

Commit

Permalink
fix typescript compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
doudou committed May 21, 2018
1 parent 2dccb7b commit 893b22f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/autoproj.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ export function loadWorkspaceInfo(workspacePath: string): Promise<WorkspaceInfo>
})
}).then((data) =>
{
let manifest = yaml.safeLoad(data.toString());
let manifest = yaml.safeLoad(data.toString()) as any[];
if (manifest === undefined) {
manifest = [];
}
Expand Down
4 changes: 2 additions & 2 deletions test/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function assertThrowsAsync(p, msg: RegExp) : Promise<Error>
}
return e;
}
throw new Error("expected promise failure but it succeeded")
throw new Error("expected promise failure but it succeeded")
}

let root;
Expand Down Expand Up @@ -133,7 +133,7 @@ export function addPackageToManifest(ws, path : string[], partialInfo: { [key: s
};

let manifestPath = Autoproj.installationManifestPath(ws.root)
let manifest = YAML.safeLoad(FS.readFileSync(manifestPath).toString());
let manifest = YAML.safeLoad(FS.readFileSync(manifestPath).toString()) as any[];
manifest.push(result);
FS.writeFileSync(manifestPath, YAML.safeDump(manifest));
ws.reload();
Expand Down

0 comments on commit 893b22f

Please sign in to comment.