Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #90 from ipfs/anorth/lint
Browse files Browse the repository at this point in the history
Fix lint errors
  • Loading branch information
Stebalien authored Jul 16, 2021
2 parents 7669a92 + 352cb78 commit 1c708d6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 94 deletions.
2 changes: 1 addition & 1 deletion file.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (fi *File) Sync() error {
// just being able to take the writelock means the descriptor is synced
// TODO: Why?
fi.desclock.Lock()
fi.desclock.Unlock()
defer fi.desclock.Unlock() // Defer works around "empty critical section (SA2001)"
return nil
}

Expand Down
Loading

0 comments on commit 1c708d6

Please sign in to comment.