Skip to content

Commit

Permalink
@zwass comments
Browse files Browse the repository at this point in the history
  • Loading branch information
groob committed Dec 1, 2017
1 parent 21bcb94 commit 1f085e8
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions osquery/munki_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ func (m *MunkiInfo) ManagedInstalls(client *osquery.ExtensionManagerClient, logg
}

func (m *MunkiInfo) generateMunkiInstalls(ctx context.Context, queryContext table.QueryContext) ([]map[string]string, error) {

if err := m.loadReport(); err != nil {
return nil, err
}
Expand All @@ -67,15 +66,8 @@ func (m *MunkiInfo) generateMunkiReport(ctx context.Context, queryContext table.
return nil, err
}

var errors string
if len(m.report.Errors) != 0 {
errors = strings.Join(m.report.Errors, ";")
}

var warnings string
if len(m.report.Warnings) != 0 {
warnings = strings.Join(m.report.Warnings, ";")
}
errors := strings.Join(m.report.Errors, ";")
warnings := strings.Join(m.report.Warnings, ";")

results := []map[string]string{
map[string]string{
Expand Down

0 comments on commit 1f085e8

Please sign in to comment.