Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
Fix exhaustive lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bandorko committed Feb 2, 2024
1 parent a7c3ee1 commit 6e49143
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/element_handle_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func (f *Files) addFile(ctx context.Context, file goja.Value) error {
}
rt := k6ext.Runtime(ctx)
fileType := file.ExportType()
switch fileType.Kind() {
switch fileType.Kind() { //nolint:exhaustive
case reflect.Map: // file descriptor object
var parsedFile File
if err := rt.ExportTo(file, &parsedFile); err != nil {
Expand All @@ -237,7 +237,7 @@ func (f *Files) Parse(ctx context.Context, files goja.Value) error {
}

optsType := files.ExportType()
switch optsType.Kind() {
switch optsType.Kind() { //nolint:exhaustive
case reflect.Slice: // array of filePaths or array of file descriptor objects
gopts := files.ToObject(rt)
for _, k := range gopts.Keys() {
Expand Down

0 comments on commit 6e49143

Please sign in to comment.