mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Use var instead of explicit types
This commit is contained in:
parent
03c30519b1
commit
de273586b4
77 changed files with 850 additions and 1017 deletions
|
@ -23,13 +23,13 @@ public class UpdateContactCommand implements LocalCommand {
|
|||
|
||||
@Override
|
||||
public int handleCommand(final Namespace ns, final Manager m) {
|
||||
String number = ns.getString("number");
|
||||
String name = ns.getString("name");
|
||||
var number = ns.getString("number");
|
||||
var name = ns.getString("name");
|
||||
|
||||
try {
|
||||
m.setContactName(number, name);
|
||||
|
||||
Integer expiration = ns.getInt("expiration");
|
||||
var expiration = ns.getInt("expiration");
|
||||
if (expiration != null) {
|
||||
m.setExpirationTimer(number, expiration);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue