Skip to content

Commit 99a8dd2

Browse files
committed
Revert eval to exported package. Used in cre.
1 parent 1596e94 commit 99a8dd2

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

cmd/wasm/wasm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import (
1010
"time"
1111

1212
"github.com/prequel-dev/preq/internal/pkg/config"
13-
"github.com/prequel-dev/preq/internal/pkg/eval"
1413
"github.com/prequel-dev/preq/internal/pkg/ux"
1514
"github.com/prequel-dev/preq/internal/pkg/verz"
15+
"github.com/prequel-dev/preq/pkg/eval"
1616
"github.com/rs/zerolog/log"
1717
)
1818

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ func Detect(ctx context.Context, c *config.Config, data, rule string) (ux.Report
2424
err error
2525
)
2626

27+
if c == nil {
28+
c = config.DefaultConfig()
29+
}
30+
2731
opts := c.ResolveOpts()
2832
opts = append(opts, resolve.WithTimestampTries(timez.DefaultSkip))
2933

test/preq_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"testing"
77

88
"github.com/prequel-dev/preq/internal/pkg/config"
9-
"github.com/prequel-dev/preq/internal/pkg/eval"
109
"github.com/prequel-dev/preq/internal/pkg/logs"
10+
"github.com/prequel-dev/preq/pkg/eval"
1111
"github.com/rs/zerolog/log"
1212
)
1313

0 commit comments

Comments
 (0)