File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
approvaltests/src/main/java/org/approvaltests/reporters/intellij Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,13 @@ private static String getPath()
2929 }
3030 public static String findJetBrainsIdes ()
3131 {
32- String [] commands = ProcessHandle .allProcesses ().map (p -> p .info ().command ()).filter (Optional ::isPresent )
33- .map (c -> c .get ()).toArray (String []::new );
34- return findJetBrainsIdes (commands );
32+ String [] runningPrograms = getRunningPrograms ();
33+ return findJetBrainsIdes (runningPrograms );
34+ }
35+ private static String [] getRunningPrograms ()
36+ {
37+ return ProcessHandle .allProcesses ().map (p -> p .info ().command ()).filter (Optional ::isPresent ).map (c -> c .get ())
38+ .toArray (String []::new );
3539 }
3640 public static String findJetBrainsIdes (String [] commands )
3741 {
You can’t perform that action at this time.
0 commit comments