Skip to content

Refactor logic#8

Merged
nfons merged 3 commits intomasterfrom
refactor-logic
Jan 5, 2019
Merged

Refactor logic#8
nfons merged 3 commits intomasterfrom
refactor-logic

Conversation

@nfons
Copy link
Owner

@nfons nfons commented Jan 5, 2019

Closes #7 . Adds a bit cleaner code logic. eliminates the duplicate k8s resource gets during start up.

// this path exists...But it could be old, so we need to delete that whole dir
log.Info("Flushing old repo files")
os.RemoveAll(createPath + "/")
os.MkdirAll(createPath, 0777)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error return value of os.MkdirAll is not checked (from errcheck)

@nfons nfons merged commit 0b2e414 into master Jan 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants