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 package client
import ( import (
"strings"
"errors"
"os/exec"
"bytes"
"time"
"bufio" "bufio"
log "github.com/sirupsen/logrus" "bytes"
"errors"
utils "github.com/bbernhard/signal-cli-rest-api/utils" utils "github.com/bbernhard/signal-cli-rest-api/utils"
log "github.com/sirupsen/logrus"
"os/exec"
"strings"
"time"
) )
type CliClient struct { type CliClient struct {
@ -167,4 +167,3 @@ func (s *CliClient) Execute(wait bool, args []string, stdin string) (string, err
return string(line), nil return string(line), nil
} }
} }

View File

@ -1545,7 +1545,6 @@ func (s *SignalClient) UpdateGroup(number string, groupId string, base64Avatar *
request.Description = groupDescription request.Description = groupDescription
request.Name = groupName request.Name = groupName
jsonRpc2Client, err := s.getJsonRpc2Client() jsonRpc2Client, err := s.getJsonRpc2Client()
if err != nil { if err != nil {
return err return err

View File

@ -5,8 +5,8 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"net" "net"
"time"
"sync" "sync"
"time"
"github.com/bbernhard/signal-cli-rest-api/utils" "github.com/bbernhard/signal-cli-rest-api/utils"
uuid "github.com/gofrs/uuid" uuid "github.com/gofrs/uuid"
@ -184,8 +184,6 @@ func (r *JsonRpc2Client) ReceiveData(number string) {
} }
log.Debug("json-rpc received data: ", str) log.Debug("json-rpc received data: ", str)
var resp1 JsonRpc2ReceivedMessage var resp1 JsonRpc2ReceivedMessage
json.Unmarshal([]byte(str), &resp1) json.Unmarshal([]byte(str), &resp1)
if resp1.Method == "receive" { if resp1.Method == "receive" {