more gofmt

This commit is contained in:
Finn 2018-10-08 20:35:40 -07:00
parent c69745b52b
commit 110afc7e8b
2 changed files with 8 additions and 8 deletions

View file

@ -40,7 +40,7 @@ var listGroupsCmd = &cobra.Command{
c := make(chan signald.Response)
go s.Listen(c)
for {
message := <- c
message := <-c
if message.ID == requestID {
for _, group := range message.Data.Groups {
fmt.Println(group.Name)

View file

@ -49,7 +49,7 @@ func init() {
cobra.OnInitialize(initConfig)
RootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.signald-cli.yaml)")
RootCmd.PersistentFlags().StringVarP(&socketPath, "socket", "s", "/var/run/signald/signald.sock", "the path to the signald socket file")
s = &signald.Signald{SocketPath: socketPath,}
s = &signald.Signald{SocketPath: socketPath}
s.Connect()
}