Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Commit

Permalink
Remove workaround after sdk15.1.0 (#53)
Browse files Browse the repository at this point in the history
* Remove workaround

* Remove workaround
  • Loading branch information
FrankEssenberger authored and Florian Richter committed Jan 23, 2020
1 parent d5ff6d2 commit e1ad669
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/utils/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ export async function copyFiles(copyDescriptors: CopyDescriptor[], options: { [k
async function copyRemote(sourcePath: URL, fileName: string) {
return new Promise((resolve, reject) => {
https
// TODO The toString() cast was necessary due to a faulty overloading of the https.get method from agent-base package
// Once the SDK version and as a consequence agent-base is updated the toString() can be removed.
.get(sourcePath.toString(), response => {
.get(sourcePath, response => {
if (response.statusCode && (response.statusCode < 200 || response.statusCode > 299)) {
reject(new Error('Failed to load page, status code: ' + response.statusCode));
}
Expand Down
4 changes: 2 additions & 2 deletions test/generate-odata-client.e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ describe('generate-odata-client', () => {
expect(
await GenerateODataClient.run([
'-i',
path.resolve(pathForTests, 'edmxSource'),
'edmxSource',
'-o',
path.resolve(pathForTests, 'output'),
'output',
'--projectDir',
pathForTests
])
Expand Down

0 comments on commit e1ad669

Please sign in to comment.