mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-05-25 14:34:22 +00:00
run gofmt
This commit is contained in:
parent
666b9e2bdd
commit
d4343c1a3e
@ -6,22 +6,22 @@ import (
|
|||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
|
"io/ioutil"
|
||||||
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
"path/filepath"
|
||||||
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
"path/filepath"
|
|
||||||
"net/http"
|
|
||||||
"strconv"
|
|
||||||
"io/ioutil"
|
|
||||||
|
|
||||||
|
"github.com/cyphar/filepath-securejoin"
|
||||||
|
"github.com/gabriel-vasile/mimetype"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
uuid "github.com/gofrs/uuid"
|
uuid "github.com/gofrs/uuid"
|
||||||
"github.com/h2non/filetype"
|
"github.com/h2non/filetype"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
qrcode "github.com/skip2/go-qrcode"
|
qrcode "github.com/skip2/go-qrcode"
|
||||||
"github.com/gabriel-vasile/mimetype"
|
|
||||||
"github.com/cyphar/filepath-securejoin"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const signalCliV2GroupError = "Cannot create a V2 group as self does not have a versioned profile"
|
const signalCliV2GroupError = "Cannot create a V2 group as self does not have a versioned profile"
|
||||||
@ -949,7 +949,6 @@ func (a *Api) ListIdentities(c *gin.Context) {
|
|||||||
numberAndTrustStatus := keyValuePair["NumberAndTrustStatus"]
|
numberAndTrustStatus := keyValuePair["NumberAndTrustStatus"]
|
||||||
numberAndTrustStatusSplitted := strings.Split(numberAndTrustStatus, ":")
|
numberAndTrustStatusSplitted := strings.Split(numberAndTrustStatus, ":")
|
||||||
|
|
||||||
|
|
||||||
identityEntry := IdentityEntry{Number: strings.Trim(numberAndTrustStatusSplitted[0], " "),
|
identityEntry := IdentityEntry{Number: strings.Trim(numberAndTrustStatusSplitted[0], " "),
|
||||||
Status: strings.Trim(numberAndTrustStatusSplitted[1], " "),
|
Status: strings.Trim(numberAndTrustStatusSplitted[1], " "),
|
||||||
Added: keyValuePair["Added"],
|
Added: keyValuePair["Added"],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user