make logging non-concurrent, remove mutexes from output pkg

This commit is contained in:
Yann Hamon 2020-05-31 17:03:02 +02:00
parent 05da409a0a
commit d94b0abf64
2 changed files with 20 additions and 9 deletions

View file

@ -3,7 +3,6 @@ package output
import (
"encoding/json"
"fmt"
"sync"
)
type result struct {
@ -15,7 +14,6 @@ type result struct {
}
type JSONOutput struct {
sync.Mutex
withSummary bool
quiet bool
results []result
@ -35,8 +33,6 @@ func NewJSONOutput(withSummary bool, quiet bool) Output {
}
func (o *JSONOutput) Write(filename, kind, version string, err error, skipped bool) {
o.Lock()
defer o.Unlock()
msg, st := "", ""
s := status(err, skipped)