Skip to content

Commit

Permalink
Remove unnecessary index increment
Browse files Browse the repository at this point in the history
  • Loading branch information
asebastian committed Aug 30, 2019
1 parent 61dbf78 commit 6274611
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions watchers/v2/s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func parseAllFiles(resp []*s3.ListObjectsOutput, bucket string, svc s3iface.S3AP
func getPropertyFiles(files []string, b string, svc s3iface.S3API) error {
services := make(map[string]interface{})

for i, f := range files {
for _, f := range files {
body, _ := getFile(f, b, svc)
pathSplit := strings.Split(f, "/")
service := pathSplit[len(pathSplit)-1]
Expand All @@ -173,8 +173,6 @@ func getPropertyFiles(files []string, b string, svc s3iface.S3API) error {
}

services[serviceName] = serviceProperties

i++
}

s, err := injectSecrets(services)
Expand Down

0 comments on commit 6274611

Please sign in to comment.