Skip to content

Commit ab699f7

Browse files
Nate FonsekaNate Fonseka
authored andcommitted
fixing lint issue
1 parent 54efc09 commit ab699f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

deckhand.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,9 @@ func GetKubernetesState(createPath string) {
276276

277277
// create the namespace path if it doesn't exist
278278
if _, exist := os.Stat(namespacePath); os.IsNotExist(exist) {
279-
os.MkdirAll(filepath.Join(namespacePath), 0777)
279+
if os.MkdirAll(filepath.Join(namespacePath), 0777) != nil {
280+
log.Fatal("Can't recreate namespace path")
281+
}
280282
}
281283

282284
// save the namespace as well

0 commit comments

Comments
 (0)