mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Addressed Codacy comments.
This commit is contained in:
parent
606b41f47c
commit
90fc65d2bc
@ -311,11 +311,12 @@ public final class CentralRepoAccount {
|
||||
* @throws InvalidAccountIDException If the account identifier is invalid.
|
||||
*/
|
||||
public static String normalizeAccountIdentifier(CentralRepoAccountType crAccountType, String accountIdentifier) throws InvalidAccountIDException {
|
||||
String normalizedAccountIdentifier;
|
||||
|
||||
|
||||
if (StringUtils.isBlank(accountIdentifier)) {
|
||||
throw new InvalidAccountIDException("Account identifier is null or empty.");
|
||||
}
|
||||
|
||||
String normalizedAccountIdentifier;
|
||||
try {
|
||||
if (crAccountType.getAcctType().equals(Account.Type.PHONE)) {
|
||||
normalizedAccountIdentifier = CorrelationAttributeNormalizer.normalizePhone(accountIdentifier);
|
||||
|
@ -28,7 +28,6 @@ import javax.swing.JList;
|
||||
import javax.swing.JOptionPane;
|
||||
import javax.swing.ListCellRenderer;
|
||||
import javax.swing.SwingUtilities;
|
||||
import org.openide.util.Exceptions;
|
||||
import org.openide.util.NbBundle.Messages;
|
||||
import org.openide.windows.WindowManager;
|
||||
import org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount;
|
||||
|
Loading…
x
Reference in New Issue
Block a user