From 73278439b09d1ccc667ed5e15e2c46b080a7fd6c Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Sat, 29 Jan 2022 13:31:31 +0100 Subject: [PATCH] fix hooks --- .hooks/pre-commit | 5 ++++- tests/main.go | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.hooks/pre-commit b/.hooks/pre-commit index 37332a9..872661b 100755 --- a/.hooks/pre-commit +++ b/.hooks/pre-commit @@ -1,3 +1,6 @@ #!/usr/bin/env bash -go fmt *.go tests/*.go +go fmt *.go +go fmt tests/*.go + git add *.go tests/*.go +git add tests/*.go diff --git a/tests/main.go b/tests/main.go index 349f9a5..76dcf92 100644 --- a/tests/main.go +++ b/tests/main.go @@ -1,7 +1,9 @@ package main -import ("git.purser.it/roypur/envconf" - "fmt") +import ( + "fmt" + "git.purser.it/roypur/envconf" +) func main() { conf := envconf.NewConfig()