Skip to content

Commit 62466d8

Browse files
committed
Clean up VQL
1 parent b6d7635 commit 62466d8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bin/reformat.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func doReformat() error {
6464
}
6565

6666
query := `
67-
LET Reformatted = SELECT reformat(artifact=read_file(filename=_value)) AS Result
67+
SELECT reformat(artifact=read_file(filename=_value)) AS Result
6868
FROM foreach(row=Artifacts)
6969
WHERE if(condition=Result.Error,
7070
then=log(level="ERROR", message="%v: <red>%v</>",
@@ -74,9 +74,6 @@ func doReformat() error {
7474
AND NOT DryRun
7575
AND copy(accessor="data", dest=_value, filename=Result.Artifact))
7676
AND FALSE
77-
78-
SELECT * FROM Reformatted
79-
8077
`
8178
err = runQueryWithEnv(query, builder, "json")
8279
if err != nil {

0 commit comments

Comments
 (0)