format sourcecode with gofmt

This commit is contained in:
Bernhard B 2025-06-03 22:19:22 +02:00
parent b3a6ee1e5d
commit fb6ec6013b
2 changed files with 53 additions and 54 deletions

View File

@ -2456,7 +2456,7 @@ func (s *SignalClient) ListContacts(number string) ([]ListContactsResponse, erro
return resp, nil return resp, nil
} }
func (s *SignalClient) SetPin(number string, registrationLockPin string) (error) { func (s *SignalClient) SetPin(number string, registrationLockPin string) error {
if s.signalCliMode == JsonRpc { if s.signalCliMode == JsonRpc {
type Request struct { type Request struct {
RegistrationLockPin string `json:"pin"` RegistrationLockPin string `json:"pin"`
@ -2481,8 +2481,7 @@ func (s *SignalClient) SetPin(number string, registrationLockPin string) (error)
return nil return nil
} }
func (s *SignalClient) RemovePin(number string) error {
func (s *SignalClient) RemovePin(number string) (error) {
if s.signalCliMode == JsonRpc { if s.signalCliMode == JsonRpc {
jsonRpc2Client, err := s.getJsonRpc2Client() jsonRpc2Client, err := s.getJsonRpc2Client()
if err != nil { if err != nil {