Skip to content

Commit dd3ce84

Browse files
LarsEckartJayBazuziisidore
committed
- r inline method
Co-authored-by: Jay Bazuzi <[email protected]> Co-authored-by: Llewellyn Falco <[email protected]>
1 parent ca4230f commit dd3ce84

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

approvaltests/src/main/java/org/approvaltests/reporters/intellij/IntelliJReporter.java

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,7 @@ public class IntelliJReporter extends GenericDiffReporter
1414
public static final IntelliJReporter INSTANCE = new IntelliJReporter();
1515
public IntelliJReporter()
1616
{
17-
super(new DiffInfo(getPath(), "diff %s %s", GenericDiffReporter.TEXT_FILE_EXTENSIONS));
18-
}
19-
20-
private static String getPath()
21-
{
22-
try
23-
{
24-
return findJetBrainsIdes();
25-
}
26-
catch (Throwable e)
27-
{
28-
// requires Java 9+
29-
return "";
30-
}
17+
super(new DiffInfo(findJetBrainsIdes(), "diff %s %s", GenericDiffReporter.TEXT_FILE_EXTENSIONS));
3118
}
3219

3320
public static String findJetBrainsIdes()

0 commit comments

Comments
 (0)