MCPcopy Index your code
hub / github.com/jetify-com/devbox / disable

Function disable

internal/boxcli/featureflag/feature.go:27–33  ·  view source on GitHub ↗

Prevent lint complaining about unused function nolint:unparam

(name string)

Source from the content-addressed store, hash-verified

25//
26//nolint:unparam
27func disable(name string) *feature {
28 if features[name] == nil {
29 features[name] = &feature{name: name}
30 }
31 features[name].enabled = false
32 return features[name]
33}
34
35// Prevent lint complaining about unused function
36//

Callers 4

TestDisabledFeatureFunction · 0.85
TestEnabledFeatureEnvFunction · 0.85
tidywarning.goFile · 0.85

Calls

no outgoing calls

Tested by 2

TestDisabledFeatureFunction · 0.68
TestEnabledFeatureEnvFunction · 0.68