fac-13 / HEII-topics

website where you can log in, post topics and vote on topics
https://heii-voting-topics.herokuapp.com/
2 stars 1 forks source link

Unused DB_URL variable #24

Closed hannahcmtucker closed 6 years ago

hannahcmtucker commented 6 years ago

in db_connection.js you set DB_URL up as a variable:

let DB_URL = process.env.DB_URL;

but then in the rest of the file you refer back to process.env.DB_URL:

if (!process.env.DB_URL)
  throw new Error("Environment variable DB_URL must be set");

const params = url.parse(process.env.DB_URL);

Would be better to refer to the variable 😀