Skip to content

Commit

Permalink
[MegaLinter] Apply linters fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wesley-dean-gsa committed Nov 19, 2024
1 parent 1d03f13 commit 4556de5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ module.exports = function (config) {

const { hosts } = yaml.load(fs.readFileSync("./_data/site.yaml", "utf8"));

if (process.env.BRANCH && environmentValidators.isValidGitBranch(process.env.BRANCH)) {
if (
process.env.BRANCH &&
environmentValidators.isValidGitBranch(process.env.BRANCH)
) {
switch (process.env.BRANCH) {
case "main":
baseUrl = new URL(hosts.live).href.replace(/\/$/, "");
Expand Down

0 comments on commit 4556de5

Please sign in to comment.