Skip to content

Commit

Permalink
lint: goimports fixes
Browse files Browse the repository at this point in the history
```
goimports -local 'github.com/tjhop/mango' -w **/*.go
```

Also removed a todo comment that is no longer relevant
  • Loading branch information
tjhop committed Oct 14, 2023
1 parent 3a9934b commit f1491f2
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion internal/inventory/directive.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"log/slog"
"path/filepath"
"strings"
"time"

"github.com/tjhop/mango/pkg/utils"
Expand Down
1 change: 0 additions & 1 deletion internal/inventory/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"log/slog"
"path/filepath"
"regexp"
"strings"
"time"

"github.com/tjhop/mango/pkg/utils"
Expand Down
1 change: 0 additions & 1 deletion internal/inventory/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"log/slog"
"path/filepath"
"strings"
"time"

"github.com/tjhop/mango/pkg/utils"
Expand Down
1 change: 0 additions & 1 deletion internal/inventory/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"log/slog"
"path/filepath"
"strings"
"time"

"github.com/tjhop/mango/pkg/utils"
Expand Down
1 change: 0 additions & 1 deletion internal/inventory/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"log/slog"
"path/filepath"
"strings"
"time"

"github.com/tjhop/mango/pkg/utils"
Expand Down
1 change: 0 additions & 1 deletion internal/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ func (mgr *Manager) ReloadAndRunAll(ctx context.Context, logger *slog.Logger, in
logger = logger.With(
slog.Group(
"manager",
// TODO: verify these log keys don't include contextKey prefix
slog.Bool(string(contextKeyEnrolled), enrolled),
slog.String(string(contextKeyRunID), runID.String()),
),
Expand Down
1 change: 1 addition & 0 deletions internal/manager/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/dustin/go-humanize"
socktmpl "github.com/hashicorp/go-sockaddr/template"
"github.com/oklog/ulid/v2"

"github.com/tjhop/mango/internal/shell"
)

Expand Down

0 comments on commit f1491f2

Please sign in to comment.