format code with gofmt

This commit is contained in:
Bernhard B 2024-05-07 22:25:18 +02:00
parent 6522dcf8c8
commit b274fd2e49
3 changed files with 72 additions and 76 deletions

View File

@ -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
}
}

View File

@ -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

View File

@ -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" {