Skip to content

Commit

Permalink
js/modules/k6: some lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoykov committed Jan 31, 2024
1 parent 5cfc152 commit a930dec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions js/modules/k6/execution/execution.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package execution implements k6/execution which lets script find out more about it is execution.
package execution

import (
Expand Down
2 changes: 2 additions & 0 deletions js/modules/k6/k6.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ func (mi *K6) Group(name string, val goja.Value) (goja.Value, error) {
}

// Check will emit check metrics for the provided checks.
//
//nolint:funlen
func (mi *K6) Check(arg0, checks goja.Value, extras ...goja.Value) (bool, error) {
state := mi.vu.State()
if state == nil {
Expand Down
2 changes: 2 additions & 0 deletions js/modules/k6/metrics/metrics.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package metrics implements k6/metrics and let script work with custom metrics.
package metrics

import (
Expand All @@ -15,6 +16,7 @@ import (
"go.k6.io/k6/metrics"
)

// Metric is a wrapper around custom metrics
type Metric struct {
metric *metrics.Metric
vu modules.VU
Expand Down

0 comments on commit a930dec

Please sign in to comment.