Skip to content

Commit 08bed93

Browse files
committed
.tool/lint: bump gocyclo req
Signed-off-by: Antonio Murdaca <[email protected]>
1 parent 44210d0 commit 08bed93

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.tool/lint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ for d in $(find . -type d -not -iwholename '*.git*' -a -not -iname '.tool' -a -n
1717
--exclude='schema/fs.go' \
1818
--disable=aligncheck \
1919
--disable=gotype \
20-
--cyclo-over=20 \
20+
--cyclo-over=35 \
2121
--tests \
2222
--deadline=10s "${d}"
2323
done

image/manifest.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ loop:
154154
// Not the root directory, ensure that the parent directory exists
155155
parent := filepath.Dir(hdr.Name)
156156
parentPath := filepath.Join(dest, parent)
157-
if _, err := os.Lstat(parentPath); err != nil && os.IsNotExist(err) {
158-
if err2 := os.MkdirAll(parentPath, 0777); err2 != nil {
159-
return err2
157+
if _, err2 := os.Lstat(parentPath); err2 != nil && os.IsNotExist(err2) {
158+
if err3 := os.MkdirAll(parentPath, 0777); err3 != nil {
159+
return err3
160160
}
161161
}
162162
}

0 commit comments

Comments
 (0)