Archived
1
0

Combines single use assignment with its if-statement

This commit is contained in:
Jip J. Dekker 2016-03-19 16:39:30 +01:00
parent 253725d0ef
commit c762f52ba7

View File

@ -64,9 +64,7 @@ Init will not use an existing directory with contents.`,
}
func initializePath(path string) {
b := helpers.Exists(path)
if !b {
if !helpers.Exists(path) {
err := os.MkdirAll(path, os.ModePerm)
helpers.Check(err, "Could not create directory")
}