Merge a few variable declaration and initializations

This commit is contained in:
Michael Eischer committed 2020-09-05 10:05:34 +02:00
1 parent 337725c354
commit 37113282ca
4 files changed
+5 -11

No files matched your search

+1 -2
View File
@@ -125,8 +125,7 @@ func (d *dir) Attr(ctx context.Context, a *fuse.Attr) error {
func (d *dir) calcNumberOfLinks() uint32 {
// a directory d has 2 hardlinks + the number
// of directories contained by d
var count uint32
count = 2
count := uint32(2)
for _, node := range d.items {
if node.Type == "dir" {
count++