From 0357f5c732fd34210b157a915c21f6a154ce56cb Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 21 Nov 2019 16:21:29 -0500 Subject: [PATCH] gitsrht-update-hook: gofmt --- gitsrht-update-hook/post-update.go | 16 ++++++++-------- gitsrht-update-hook/submitter.go | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gitsrht-update-hook/post-update.go b/gitsrht-update-hook/post-update.go index 32e2956..27f4e83 100644 --- a/gitsrht-update-hook/post-update.go +++ b/gitsrht-update-hook/post-update.go @@ -278,13 +278,13 @@ func postUpdate() { } procAttr := syscall.ProcAttr{ - Dir: wd, - Files: []uintptr{os.Stdin.Fd(), os.Stdout.Fd(), os.Stderr.Fd()}, - Env: os.Environ(), - Sys: &syscall.SysProcAttr{ - Foreground: false, - }, - } + Dir: wd, + Files: []uintptr{os.Stdin.Fd(), os.Stdout.Fd(), os.Stderr.Fd()}, + Env: os.Environ(), + Sys: &syscall.SysProcAttr{ + Foreground: false, + }, + } pid, err := syscall.ForkExec(hook, []string{ "hooks/stage-3", string(deliveriesJson), string(payloadBytes), }, &procAttr) @@ -292,7 +292,7 @@ func postUpdate() { log.Fatalf("Failed to execute stage 3: %v", err) } - logger.Printf("Executing stage 3 to record %d sync deliveries and make " + + logger.Printf("Executing stage 3 to record %d sync deliveries and make "+ "%d async deliveries (pid %d)", len(deliveries), len(dbinfo.AsyncWebhooks), pid) } diff --git a/gitsrht-update-hook/submitter.go b/gitsrht-update-hook/submitter.go index 5feb9fd..ea4e3aa 100644 --- a/gitsrht-update-hook/submitter.go +++ b/gitsrht-update-hook/submitter.go @@ -75,7 +75,7 @@ func (submitter GitBuildSubmitter) FindManifests() (map[string]string, error) { for { file, err = entries.Next() if file == nil || err != nil { - break; + break } if strings.HasSuffix(file.Name, ".yml") { files = append(files, file) -- 2.38.4