Skip to content

Commit

Permalink
.tool/lint: bump gocyclo req
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
  • Loading branch information
runcom committed Jul 22, 2016
1 parent 44210d0 commit 08bed93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .tool/lint
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ for d in $(find . -type d -not -iwholename '*.git*' -a -not -iname '.tool' -a -n
--exclude='schema/fs.go' \
--disable=aligncheck \
--disable=gotype \
--cyclo-over=20 \
--cyclo-over=35 \
--tests \
--deadline=10s "${d}"
done
6 changes: 3 additions & 3 deletions image/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ loop:
// Not the root directory, ensure that the parent directory exists
parent := filepath.Dir(hdr.Name)
parentPath := filepath.Join(dest, parent)
if _, err := os.Lstat(parentPath); err != nil && os.IsNotExist(err) {
if err2 := os.MkdirAll(parentPath, 0777); err2 != nil {
return err2
if _, err2 := os.Lstat(parentPath); err2 != nil && os.IsNotExist(err2) {
if err3 := os.MkdirAll(parentPath, 0777); err3 != nil {
return err3
}
}
}
Expand Down

0 comments on commit 08bed93

Please sign in to comment.