Skip to content

Commit

Permalink
make lint and vet happy
Browse files Browse the repository at this point in the history
  • Loading branch information
pbuetow committed Mar 18, 2020
1 parent 68aa3c0 commit 077af4d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/io/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const (
traceStr string = "TRACE"
)

// The configured logging mode(s)
// Mode specifies the configured logging mode(s)
var Mode Modes

// Strategy is the current log strattegy used.
Expand Down
1 change: 1 addition & 0 deletions internal/io/logger/modes.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package logger

// Modes specifies the logging mode.
type Modes struct {
Server bool
Trace bool
Expand Down
2 changes: 1 addition & 1 deletion internal/io/logger/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package logger

import "github.com/mimecast/dtail/internal/config"

// strategy allows to specify a log rotation strategy.
// Strategy allows to specify a log rotation strategy.
type Strategy int

// Possible log strategies.
Expand Down
1 change: 1 addition & 0 deletions internal/io/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ func (r Run) pipeToLines(commandExited chan struct{}, wg *sync.WaitGroup, pid in
select {
case <-commandExited:
return
default:
}
continue
}
Expand Down
2 changes: 1 addition & 1 deletion internal/mapr/logformat/generic.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package logformat

// MakeFieldsGENEROC is the generic log line parser.
// MakeFieldsGENERIC is the generic log line parser.
func (p *Parser) MakeFieldsGENERIC(maprLine string) (map[string]string, error) {
fields := make(map[string]string, 3)

Expand Down
2 changes: 1 addition & 1 deletion internal/server/background/background.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (b Background) ListJobsC(userName string) <-chan string {
b.mutex.Lock()
defer b.mutex.Unlock()

for k, _ := range b.jobs {
for k := range b.jobs {
logger.Debug("ListJobsC", k, userName)
if strings.HasPrefix(k, fmt.Sprintf("%s.", userName)) {
ch <- k
Expand Down

0 comments on commit 077af4d

Please sign in to comment.