Skip to content

Commit 7219736

Browse files
chore: remove AB_SERVER and AB_SERVER_PROTO properties
AB_SERVER and AB_SERVER_PROTO properties were used in the past, we do not need them anymore.
1 parent dab367a commit 7219736

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

lib/common/definitions/config.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ declare module Config {
2929
}
3030

3131
interface IConfig {
32-
AB_SERVER?: string;
33-
AB_SERVER_PROTO?: string;
3432
DEBUG?: boolean;
3533
ON_PREM?: boolean;
3634
CI_LOGGER?: boolean;

lib/common/http-client.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ export class HttpClient implements Server.IHttpClient {
1717
private defaultUserAgent: string;
1818
private cleanupData: ICleanupRequestData[];
1919

20-
constructor(private $config: Config.IConfig,
21-
private $logger: ILogger,
20+
constructor(private $logger: ILogger,
2221
private $processService: IProcessService,
2322
private $proxyService: IProxyService,
2423
private $staticConfig: Config.IStaticConfig) {
@@ -261,9 +260,7 @@ export class HttpClient implements Server.IHttpClient {
261260
this.$logger.error(`You can run ${EOL}\t${clientNameLowerCase} proxy set <url> <username> <password>.${EOL}In order to supply ${clientNameLowerCase} with the credentials needed.`);
262261
return "Your proxy requires authentication.";
263262
} else if (statusCode === HttpStatusCodes.PAYMENT_REQUIRED) {
264-
const subscriptionUrl = util.format("%s://%s/appbuilder/account/subscription", this.$config.AB_SERVER_PROTO, this.$config.AB_SERVER);
265-
return util.format("Your subscription has expired. Go to %s to manage your subscription. Note: After you renew your subscription, " +
266-
"log out and log back in for the changes to take effect.", subscriptionUrl);
263+
return util.format("Your subscription has expired.");
267264
} else {
268265
this.$logger.trace("Request was unsuccessful. Server returned: ", body);
269266
try {

0 commit comments

Comments
 (0)