Skip to content

Commit

Permalink
Apply cfformat changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano authored and github-actions[bot] committed Sep 9, 2024
1 parent b53f9a1 commit 2851fc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands/testbox/run.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -434,16 +434,16 @@ component {
*/
private function ensureTestBox( boolean testboxUseLocal = true ){
// Where it should go in the module installed locally
var testBoxPath = variables.moduleConfig.path & "/testbox";
var modulePath = variables.moduleConfig.path;
var testBoxPath = variables.moduleConfig.path & "/testbox";
var modulePath = variables.moduleConfig.path;
var serverDetails = variables.serverService.resolveServerDetails( {} );
var serverInfo = serverDetails.serverInfo;

// If using local, check if we have a local version first
if ( arguments.testboxUseLocal ) {
// Check if we have a local version
var localTestBoxPath = resolvePath( "testbox", serverInfo.webroot );
if( directoryExists( localTestBoxPath ) ){
if ( directoryExists( localTestBoxPath ) ) {
testBoxPath = localTestBoxPath;
}
}
Expand Down

0 comments on commit 2851fc7

Please sign in to comment.