Skip to content

Commit 9c80359

Browse files
committed
fix: lint issues
1 parent 55f824a commit 9c80359

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

evaluator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func Evaluate(ctx context.Context, tape string, out io.Writer, opts ...Evaluator
111111
}
112112

113113
// Begin recording frames as we are now in a recording state.
114-
ctx, cancel := context.WithCancel(ctx)
114+
ctx, cancel := context.WithCancel(ctx) //nolint:gosec
115115
ch := v.Record(ctx)
116116

117117
// Clean up temporary files at the end.

parser/parser.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,15 +681,15 @@ func (p *Parser) parseSource() []Command {
681681
}
682682

683683
// Check if tape exist
684-
if _, err := os.Stat(srcPath); os.IsNotExist(err) {
684+
if _, err := os.Stat(srcPath); os.IsNotExist(err) { //nolint:gosec
685685
notFoundErr := fmt.Sprintf("File %s not found", srcPath)
686686
p.errors = append(p.errors, NewError(p.peek, notFoundErr))
687687
p.nextToken()
688688
return []Command{cmd}
689689
}
690690

691691
// Check if source tape contains nested Source command
692-
d, err := os.ReadFile(srcPath)
692+
d, err := os.ReadFile(srcPath) //nolint:gosec
693693
if err != nil {
694694
readErr := fmt.Sprintf("Unable to read file: %s", srcPath)
695695
p.errors = append(p.errors, NewError(p.peek, readErr))

0 commit comments

Comments
 (0)