Skip to content

Commit

Permalink
chore: remove spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
koonweiteo-commercetools committed Sep 18, 2024
1 parent 2192701 commit 8e784f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ export async function createAzureServiceBusCustomerCreateSubscription(
await createSubscription(apiRoot, destination);
}

async function createSubscription(
apiRoot,
destination
) {
async function createSubscription(apiRoot, destination) {
await deleteCustomerCreateSubscription(apiRoot);
await apiRoot
.subscriptions()
Expand All @@ -47,7 +44,6 @@ async function createSubscription(
.execute();
}


export async function deleteCustomerCreateSubscription(apiRoot) {
const {
body: { results: subscriptions },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ dotenv.config();

import { createApiRoot } from '../client/create.client.js';
import { assertError, assertString } from '../utils/assert.utils.js';
import { createGcpPubSubCustomerCreateSubscription, createAzureServiceBusCustomerCreateSubscription } from './actions.js';
import {
createGcpPubSubCustomerCreateSubscription,
createAzureServiceBusCustomerCreateSubscription,
} from './actions.js';

const CONNECT_GCP_TOPIC_NAME_KEY = 'CONNECT_GCP_TOPIC_NAME';
const CONNECT_GCP_PROJECT_ID_KEY = 'CONNECT_GCP_PROJECT_ID';
Expand All @@ -21,7 +24,6 @@ async function postDeploy(properties) {
CONNECT_AZURE_CONNECTION_STRING_KEY
);
assertString(connectionString, CONNECT_AZURE_CONNECTION_STRING_KEY);

await createAzureServiceBusCustomerCreateSubscription(
apiRoot,
connectionString
Expand All @@ -31,10 +33,8 @@ async function postDeploy(properties) {
default: {
const topicName = properties.get(CONNECT_GCP_TOPIC_NAME_KEY);
const projectId = properties.get(CONNECT_GCP_PROJECT_ID_KEY);

assertString(topicName, CONNECT_GCP_TOPIC_NAME_KEY);
assertString(projectId, CONNECT_GCP_PROJECT_ID_KEY);

await createGcpPubSubCustomerCreateSubscription(
apiRoot,
topicName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ async function postDeploy(properties: Map<string, unknown>): Promise<void> {
CONNECT_AZURE_CONNECTION_STRING_KEY
);
assertString(connectionString, CONNECT_AZURE_CONNECTION_STRING_KEY);

await createAzureServiceBusCustomerCreateSubscription(
apiRoot,
connectionString
Expand All @@ -34,10 +33,8 @@ async function postDeploy(properties: Map<string, unknown>): Promise<void> {
default: {
const topicName = properties.get(CONNECT_GCP_TOPIC_NAME_KEY);
const projectId = properties.get(CONNECT_GCP_PROJECT_ID_KEY);

assertString(topicName, CONNECT_GCP_TOPIC_NAME_KEY);
assertString(projectId, CONNECT_GCP_PROJECT_ID_KEY);

await createGcpPubSubCustomerCreateSubscription(
apiRoot,
topicName,
Expand Down

0 comments on commit 8e784f4

Please sign in to comment.