ran go-fmt on complete sourcecode

This commit is contained in:
Bernhard B
2022-04-01 19:08:07 +02:00
parent d34fcb905e
commit 0b6bd44838
5 changed files with 30 additions and 32 deletions

View File

@@ -1,8 +1,10 @@
package main
import (
"encoding/json"
"fmt"
"github.com/bbernhard/signal-cli-rest-api/utils"
"github.com/gabriel-vasile/mimetype"
log "github.com/sirupsen/logrus"
"io/ioutil"
"os"
@@ -10,8 +12,6 @@ import (
"path/filepath"
"strconv"
"strings"
"github.com/gabriel-vasile/mimetype"
"encoding/json"
)
const supervisorctlConfigTemplate = `
@@ -48,7 +48,6 @@ func isSignalCliLinkedNumberConfigFile(filename string) (bool, error) {
return false, nil
}
func getUsernameFromLinkedNumberConfigFile(filename string) (string, error) {
type LinkedNumberConfigFile struct {
Username string `json:"username"`
@@ -126,7 +125,7 @@ func main() {
uid := utils.GetEnv("SIGNAL_CLI_UID", "1000")
gid := utils.GetEnv("SIGNAL_CLI_GID", "1000")
_, err = exec.Command("chown", uid + ":" + gid, fifoPathname).Output()
_, err = exec.Command("chown", uid+":"+gid, fifoPathname).Output()
if err != nil {
log.Fatal("Couldn't change permissions of fifo with name ", fifoPathname, ": ", err.Error())
}