Skip to content

Commit

Permalink
Skip json files that do not conform to the format we expect
Browse files Browse the repository at this point in the history
We could try to work around this by accepting both bool and string,
but for now there is only one occurrence of this problem.
  • Loading branch information
torarnv committed Aug 15, 2023
1 parent adf6a77 commit 0734dad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datasource/appledb.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ func QueryAppleDB(config Config) (DatasourceOutputs, error) {

var osFile OsFile
if err := json.Unmarshal(dat, &osFile); err != nil {
return err
log.Printf("Skipping %s (%s)", path, err)
return nil
}

if osFile.OS != config.OS {
Expand Down

0 comments on commit 0734dad

Please sign in to comment.