Skip to content

Commit

Permalink
remove env (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
YingXue authored Nov 8, 2022
1 parent b84ed04 commit ca0beed
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/server/eventHubHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ import { AmqpError, Connection, ReceiverEvents, parseConnectionString } from "rh
import * as rheaPromise from "rhea-promise";
import { ErrorNameConditionMapper as AMQPError } from "@azure/core-amqp";

// Load the .env file if it exists
import * as dotenv from "dotenv";
dotenv.config();

/**
* Type guard for AmqpError.
* @param err - An unknown error.
Expand All @@ -30,8 +26,6 @@ function isAmqpError(err: any): err is AmqpError {
return rheaPromise.isAmqpError(err);
}

const consumerGroup = process.env["CONSUMER_GROUP_NAME"] || "";

// This code is modified from https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-security#security-tokens.
function generateSasToken(
resourceUri: string,
Expand Down

0 comments on commit ca0beed

Please sign in to comment.