mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-05-20 13:44:17 +00:00
format code with gofmt
This commit is contained in:
parent
6522dcf8c8
commit
b274fd2e49
@ -1,14 +1,14 @@
|
||||
package client
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"errors"
|
||||
"os/exec"
|
||||
"bytes"
|
||||
"time"
|
||||
"bufio"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"bytes"
|
||||
"errors"
|
||||
utils "github.com/bbernhard/signal-cli-rest-api/utils"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"os/exec"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
type CliClient struct {
|
||||
@ -167,4 +167,3 @@ func (s *CliClient) Execute(wait bool, args []string, stdin string) (string, err
|
||||
return string(line), nil
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1545,7 +1545,6 @@ func (s *SignalClient) UpdateGroup(number string, groupId string, base64Avatar *
|
||||
request.Description = groupDescription
|
||||
request.Name = groupName
|
||||
|
||||
|
||||
jsonRpc2Client, err := s.getJsonRpc2Client()
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@ -5,8 +5,8 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"net"
|
||||
"time"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/bbernhard/signal-cli-rest-api/utils"
|
||||
uuid "github.com/gofrs/uuid"
|
||||
@ -184,8 +184,6 @@ func (r *JsonRpc2Client) ReceiveData(number string) {
|
||||
}
|
||||
log.Debug("json-rpc received data: ", str)
|
||||
|
||||
|
||||
|
||||
var resp1 JsonRpc2ReceivedMessage
|
||||
json.Unmarshal([]byte(str), &resp1)
|
||||
if resp1.Method == "receive" {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user