mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
Removed blank tips of the day.
This commit is contained in:
parent
796ad69cc0
commit
3fec48671c
1 changed files with 3 additions and 1 deletions
|
@ -18,6 +18,7 @@ package ghidra.app.plugin.core.totd;
|
|||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import docking.ActionContext;
|
||||
import docking.action.DockingAction;
|
||||
|
@ -82,7 +83,8 @@ public class TipOfTheDayPlugin extends Plugin implements FrontEndOnly {
|
|||
|
||||
private List<String> loadTips() throws IOException {
|
||||
try (InputStream in = getClass().getResourceAsStream("tips.txt")) {
|
||||
return in == null ? Collections.emptyList() : FileUtilities.getLines(in);
|
||||
List<String> tips = in == null ? Collections.emptyList() : FileUtilities.getLines(in);
|
||||
return tips.stream().filter(s -> s.length() > 0).collect(Collectors.toList());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue