Skip to content

Commit 9f70e17

Browse files
committed
Remove some leftover comments
1 parent f909e66 commit 9f70e17

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

build-scripts/fetch-proto.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const argv = yargs
2323
.version(package.version).alias('version', 'v')
2424
.options({
2525
source: {
26-
alias: ['s'],
26+
alias: 's',
2727
description: '<proto-file-source-url>',
2828
requiresArg: true,
2929
default: originProtoPath,
@@ -33,8 +33,7 @@ const argv = yargs
3333
const urlObject = new URL(arg);
3434
return urlObject;
3535
} catch (e) {
36-
// throw new Error(`Error: ${arg} is not a valid URL path`);
37-
throw e;
36+
throw new Error(`Error: ${arg} is not a valid URL path`);
3837
}
3938
}
4039
},
@@ -90,7 +89,6 @@ function fetchProto () {
9089
})
9190
.catch((error) => {
9291
spinner.fail(`Error connecting to: ${error.config.url}`);
93-
// shell.echo(`Error connecting to: ${error.config.url}`);
9492
if (error.response) {
9593
// The request was made and the server responded with a status code out of range 2xx
9694
shell.echo(`${error.response.status} - ${error.response.statusText}`);

build-scripts/gen-proto-code.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const argv = yargs
2323
.version(package.version).alias('version', 'v')
2424
.options({
2525
input: {
26-
alias: ['i'],
26+
alias: 'i',
2727
description: '<input-proto-path>',
2828
requiresArg: true,
2929
default: originProtoPath,

src/environments/environment.prod.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
export const environment = {
22
production: true,
3-
// metricsEndpoint: 'ws://localhost:8080/metrics'
43
metricsEndpoint: 'ws://localhost:3000',
54
microservicesEndpoint: '//localhost:8080/microservices'
65
};

src/environments/environment.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
export const environment = {
77
production: false,
8-
// metricsEndpoint: 'ws://localhost:8080/metrics'
98
metricsEndpoint: 'ws://localhost:3000',
109
microservicesEndpoint: '//localhost:8080/microservices'
1110
};

0 commit comments

Comments
 (0)