Skip to content

Commit 3ad0ed8

Browse files
committed
early return
1 parent 4dc4bac commit 3ad0ed8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Context/FeatureContext.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,12 +411,11 @@ public static function get_bin_path(): ?string {
411411
foreach ( $bin_paths as $path ) {
412412
$full_bin_path = $path . DIRECTORY_SEPARATOR . $bin;
413413
if ( is_file( $full_bin_path ) && is_executable( $full_bin_path ) ) {
414-
$bin_path = $path;
415-
break;
414+
return $path;
416415
}
417416
}
418417

419-
return $bin_path;
418+
return null;
420419
}
421420

422421
/**

0 commit comments

Comments
 (0)