mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-03-31 05:41:51 -04:00
Fix linter warning
This commit is contained in:
@@ -189,7 +189,7 @@ public class LoyaltyCardEditActivity extends AppCompatActivity
|
||||
LoyaltyCard importCard;
|
||||
try {
|
||||
importCard = importUriHelper.parse(importLoyaltyCardUri);
|
||||
} catch (InvalidObjectException _) {
|
||||
} catch (InvalidObjectException ex) {
|
||||
Toast.makeText(this, R.string.failedParsingImportUriError, Toast.LENGTH_LONG).show();
|
||||
finish();
|
||||
return;
|
||||
|
||||
@@ -66,7 +66,7 @@ public class ImportURITest {
|
||||
try {
|
||||
importURIHelper.parse(Uri.parse("https://example.com/test"));
|
||||
assertTrue(false); // Shouldn't get here
|
||||
} catch(InvalidObjectException _) {
|
||||
} catch(InvalidObjectException ex) {
|
||||
// Desired behaviour
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user