Skip to content

Commit 0e706b8

Browse files
bundle/env: remove unused ManagedState helper
The deadcode lint check flagged this as unreachable on PR #5355's CI. ManagedState returned (string, bool) but no caller existed — every consumer uses IsManagedState (the bool wrapper). Drop it; reintroduce only if a caller needs the raw value. Co-authored-by: Isaac
1 parent c91ec1b commit 0e706b8

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

bundle/env/deployment_metadata.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ import (
1616
// behavior.
1717
const managedStateVariable = "DATABRICKS_BUNDLE_MANAGED_STATE"
1818

19-
// ManagedState returns the raw value of DATABRICKS_BUNDLE_MANAGED_STATE if
20-
// set. Callers that only need a bool should use IsManagedState.
21-
func ManagedState(ctx context.Context) (string, bool) {
22-
return get(ctx, []string{managedStateVariable})
23-
}
24-
2519
// IsManagedState reports whether the DATABRICKS_BUNDLE_MANAGED_STATE
2620
// environment variable is set to a truthy value.
2721
func IsManagedState(ctx context.Context) bool {

0 commit comments

Comments
 (0)