Skip to content

Commit 1b1ceb0

Browse files
committed
Modify variable name from json_paths to jsonPaths
1 parent f24ecef commit 1b1ceb0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

commands/instances.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,11 @@ func UpdateIndex(ctx context.Context, req *rpc.UpdateIndexReq, downloadCB Downlo
201201
}
202202

203203
indexpath := paths.New(configuration.Settings.GetString("directories.Data"))
204-
json_paths := []string{}
205-
json_paths = append(json_paths, configuration.Settings.GetStringSlice("board_manager.additional_paths")...)
204+
jsonPaths := []string{}
205+
jsonPaths = append(jsonPaths, configuration.Settings.GetStringSlice("board_manager.additional_paths")...)
206206

207-
for _, x := range json_paths {
208-
logrus.Info("JSON_PATH: ", x)
207+
for _, x := range jsonPaths {
208+
logrus.Info("JSON PATH: ", x)
209209

210210
path_to_json, _ := paths.New(x).Abs()
211211

@@ -673,9 +673,9 @@ func createInstance(ctx context.Context, getLibOnly bool) (*createInstanceResult
673673
}
674674

675675
//indexpath := paths.New(configuration.Settings.GetString("directories.Data"))
676-
json_paths := []string{}
677-
json_paths = append(json_paths, configuration.Settings.GetStringSlice("board_manager.additional_paths")...)
678-
for _, x := range json_paths {
676+
jsonPaths := []string{}
677+
jsonPaths = append(jsonPaths, configuration.Settings.GetStringSlice("board_manager.additional_paths")...)
678+
for _, x := range jsonPaths {
679679
//path_to_json, err := paths.New(x).Abs()
680680
path_to_json, _ := paths.New(x).Abs()
681681

0 commit comments

Comments
 (0)