mirror of
https://github.com/restic/restic.git
synced 2026-11-21 21:12:42 +00:00
Merge a few variable declaration and initializations
This commit is contained in:
1 parent
337725c354
commit
37113282ca
4 files changed
+5
-11
No files matched your search
@@ -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++
|
||||
|
||||
Reference in new issue
Block a user