Skip to content

Commit

Permalink
fix: remove redundant log and add function comment (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
shanishiri authored Aug 22, 2022
1 parent 85f97db commit 8b405bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ export const getProtocolModuleForUri = (uri: string) => {
return uri.indexOf('https') === 0 ? https : http;
};

/**
* This function return the environment variables by total max size of the values of each environment variable key.
* For example: if max size=2, environment variables ={"key_1": "value1", "key_2": "value_2"}, return {"key_1": "value1"}.
*/
export const extractEnvVars = () => {
const res = {};
const maxSize = getMaxSize();
Expand Down
3 changes: 0 additions & 3 deletions test/component/http/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ const http = require("http");
const host = 'localhost';
const port = 8000;

console.log("env. vars component tests:")
console.log(process.env)

const requestListener = async function (req, res) {
console.log("in request");

Expand Down

0 comments on commit 8b405bc

Please sign in to comment.