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

Function enable

internal/boxcli/featureflag/feature.go:38–44  ·  view source on GitHub ↗

Prevent lint complaining about unused function nolint:unparam

(name string)

Source from the content-addressed store, hash-verified

36//
37//nolint:unparam
38func enable(name string) *feature {
39 if features[name] == nil {
40 features[name] = &feature{name: name}
41 }
42 features[name].enabled = true
43 return features[name]
44}
45
46var logMap = map[string]bool{}
47

Callers 4

auth.goFile · 0.85
resolvev2.goFile · 0.85
TestEnabledFeatureFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestEnabledFeatureFunction · 0.68