Skip to content

Commit 2eda8e9

Browse files
committed
fix lint
1 parent 72f70bf commit 2eda8e9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bundle/config/generate/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"github.com/databricks/databricks-sdk-go/service/apps"
77
)
88

9-
func ConvertAppToValue(app *apps.App, sourceCodePath string, appConfig map[string]interface{}) (dyn.Value, error) {
9+
func ConvertAppToValue(app *apps.App, sourceCodePath string, appConfig map[string]any) (dyn.Value, error) {
1010
ac, err := convert.FromTyped(appConfig, dyn.NilValue)
1111
if err != nil {
1212
return dyn.NilValue, err

cmd/bundle/generate/app.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func NewGenerateAppCommand() *cobra.Command {
126126
return cmd
127127
}
128128

129-
func getAppConfig(ctx context.Context, app *apps.App, w *databricks.WorkspaceClient) (map[string]interface{}, error) {
129+
func getAppConfig(ctx context.Context, app *apps.App, w *databricks.WorkspaceClient) (map[string]any, error) {
130130
sourceCodePath := app.DefaultSourceCodePath
131131

132132
f, err := filer.NewWorkspaceFilesClient(w, sourceCodePath)
@@ -152,7 +152,7 @@ func getAppConfig(ctx context.Context, app *apps.App, w *databricks.WorkspaceCli
152152
return nil, err
153153
}
154154

155-
var appConfig map[string]interface{}
155+
var appConfig map[string]any
156156
err = yaml.Unmarshal(content, &appConfig)
157157
if err != nil {
158158
cmdio.LogString(ctx, fmt.Sprintf("Failed to parse app configuration:\n%s\nerr: %v", string(content), err))

0 commit comments

Comments
 (0)