Only output username if set

This commit is contained in:
AsamK 2023-10-04 17:10:16 +02:00
parent 7f83bfefd6
commit 90ec01bfbf

View file

@ -1,5 +1,7 @@
package org.asamk.signal.commands;
import com.fasterxml.jackson.annotation.JsonInclude;
import net.sourceforge.argparse4j.impl.Arguments;
import net.sourceforge.argparse4j.inf.Namespace;
import net.sourceforge.argparse4j.inf.Subparser;
@ -71,6 +73,6 @@ public class UpdateAccountCommand implements JsonRpcLocalCommand {
}
private record JsonAccountResponse(
String username
@JsonInclude(JsonInclude.Include.NON_NULL) String username
) {}
}