Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany committed Jul 15, 2024
1 parent 428a872 commit 8c46927
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions ee/katc/indexeddb_leveldb.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ func indexeddbLeveldbData(ctx context.Context, slogger *slog.Logger, sourcePaths
// Query databases
for _, db := range leveldbs {
// Check to make sure `db` adheres to pathConstraintsFromQuery. This is an
// optimization to avoid work -- no point in querying a leveldb file that a filter
// will exclude anyway.
// optimization to avoid work, if osquery sqlite filtering is going to exclude it.
valid, err := checkPathConstraints(db, pathConstraintsFromQuery)
if err != nil {
return nil, fmt.Errorf("checking source path constraints: %w", err)
Expand Down
2 changes: 1 addition & 1 deletion ee/katc/sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func sqliteData(ctx context.Context, slogger *slog.Logger, sourcePaths []string,

for _, sqliteDb := range sqliteDbs {
// Check to make sure `db` adheres to pathConstraintsFromQuery. This is an
// optimization to avoid work, if sqlite filtering is going to exclude it.
// optimization to avoid work, if osquery sqlite filtering is going to exclude it.
valid, err := checkPathConstraints(sqliteDb, pathConstraintsFromQuery)
if err != nil {
return nil, fmt.Errorf("checking source path constraints: %w", err)
Expand Down

0 comments on commit 8c46927

Please sign in to comment.