Skip to content

Commit

Permalink
objectionary#3267: formatting and package-private
Browse files Browse the repository at this point in the history
  • Loading branch information
levBagryansky committed Aug 7, 2024
1 parent ecbb2a5 commit 517a304
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,13 @@
* @since 0.40
*/
@SuppressWarnings("JTCOP.RuleAllTestsHaveProductionClass")
public final class XcopCondition implements ExecutionCondition {
final class XcopCondition implements ExecutionCondition {
@Override
public ConditionEvaluationResult evaluateExecutionCondition(
final ExtensionContext context) {
final ConditionEvaluationResult ret;
final boolean exists = Stream.of(
System.getenv("PATH").split(Pattern.quote(File.pathSeparator))
)
final boolean exists = Stream
.of(System.getenv("PATH").split(Pattern.quote(File.pathSeparator)))
.map(Paths::get)
.anyMatch(path -> Files.exists(path.resolve("xcop")));
if (exists) {
Expand Down

0 comments on commit 517a304

Please sign in to comment.