Skip to content

Commit

Permalink
Lint:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterbrandsen committed Jul 2, 2023
1 parent f92ec01 commit 284e21f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/setup/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,12 @@ function resetFolders() {

async function Setup(mArgv) {
argv = mArgv || {};
if (argv.grafanaPort) grafanaPort = argv.grafanaPort
else grafanaPort = !argv.traefik
? await getPort({ portRange: [3000, 4000] })
: 3000;
if (argv.grafanaPort) grafanaPort = argv.grafanaPort;
else {
grafanaPort = !argv.traefik
? await getPort({ portRange: [3000, 4000] })
: 3000;
}

argv.grafanaPort = grafanaPort;
serverPort = argv.serverPort;
Expand Down

0 comments on commit 284e21f

Please sign in to comment.