Bläddra i källkod

Fixes linting errors

chaptergy 5 år sedan
förälder
incheckning
ac9f052309
1 ändrade filer med 5 tillägg och 5 borttagningar
  1. 5 5
      backend/internal/certificate.js

+ 5 - 5
backend/internal/certificate.js

@@ -814,10 +814,10 @@ const internalCertificate = {
 			) +
 			(le_staging ? ' --staging' : '');
 
-			// Prepend the path to the credentials file as an environment variable
-			if (certificate.meta.dns_provider === 'route53') {
-				main_cmd = 'AWS_CONFIG_FILE=\'' + credentials_loc + '\' ' + main_cmd
-			}
+		// Prepend the path to the credentials file as an environment variable
+		if (certificate.meta.dns_provider === 'route53') {
+			main_cmd = 'AWS_CONFIG_FILE=\'' + credentials_loc + '\' ' + main_cmd;
+		}
 		
 		const teardown_cmd = `rm '${credentials_loc}'`;
 
@@ -934,7 +934,7 @@ const internalCertificate = {
 
 		// Prepend the path to the credentials file as an environment variable
 		if (certificate.meta.dns_provider === 'route53') {
-			main_cmd = 'AWS_CONFIG_FILE=\'' + credentials_loc + '\' ' + main_cmd
+			main_cmd = 'AWS_CONFIG_FILE=\'' + credentials_loc + '\' ' + main_cmd;
 		}
 
 		const teardown_cmd = `rm '${credentials_loc}'`;