indykite / neo4j-graph-tool-core

Empty slice literal used to declare a variable GO-W1027
Anti-pattern
Minor
4 months ago4 months old
Empty slice literal of type "[]*MigrationFile" used to define "filesToRun"
219	executedFiles map[int64]bool,
220	targetCommit int64,
221) []*MigrationFile {
222	filesToRun := []*MigrationFile{}223
224	if targetCommit == 0 {
225		targetCommit = math.MaxInt64
Empty slice literal of type "[]*MigrationFile" used to define "filesToRun"
198	executedFiles map[int64]bool,
199	targetCommit int64,
200) []*MigrationFile {
201	filesToRun := []*MigrationFile{}202
203	if targetCommit == 0 {
204		targetCommit = math.MaxInt64
Empty slice literal of type "[]versionPlan" used to define "plan"
 67		*MigrationScripts
 68		version *semver.Version
 69	}
 70	plan := []versionPlan{} 71
 72	// preventSnapshot can disable using snapshots even they exists.
 73	preventSnapshot := false // TODO: read from configuration