Skip to content

Commit 4ab44bf

Browse files
committed
*.go: goimports -w .`
Signed-off-by: Vincent Batts <[email protected]>
1 parent 732bc46 commit 4ab44bf

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

Diff for: compare.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,8 @@ func compare(oldDh, newDh *DirectoryHierarchy, keys []Keyword, same bool) ([]Ino
459459
// InodeDeltas.
460460
//
461461
// NB: The order of the parameters matters (old, new) because Extra and
462-
// Missing are considered as different discrepancy types.
462+
//
463+
// Missing are considered as different discrepancy types.
463464
func Compare(oldDh, newDh *DirectoryHierarchy, keys []Keyword) ([]InodeDelta, error) {
464465
return compare(oldDh, newDh, keys, false)
465466
}

Diff for: tar.go

+7-4
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,9 @@ hdrloop:
229229
// appropriate position in the tree. If not, create a path up until the Entry's
230230
// directory that it is contained in. Then, insert the Entry.
231231
// root: the "." Entry
232-
// e: the Entry we are looking to insert
233-
// hdr: the tar header struct associated with e
232+
//
233+
// e: the Entry we are looking to insert
234+
// hdr: the tar header struct associated with e
234235
func populateTree(root, e *Entry, hdr *tar.Header) error {
235236
if root == nil || e == nil {
236237
return fmt.Errorf("cannot populate or insert nil Entry's")
@@ -295,8 +296,10 @@ func populateTree(root, e *Entry, hdr *tar.Header) error {
295296

296297
// After constructing a pseudo file hierarchy tree, we want to "flatten" this
297298
// tree by putting the Entries into a slice with appropriate positioning.
298-
// root: the "head" of the sub-tree to flatten
299-
// creator: a dhCreator that helps with the '/set' keyword
299+
//
300+
// root: the "head" of the sub-tree to flatten
301+
// creator: a dhCreator that helps with the '/set' keyword
302+
//
300303
// keywords: keywords specified by the user that should be evaluated
301304
func flatten(root *Entry, creator *dhCreator, keywords []Keyword) {
302305
if root == nil || creator == nil {

Diff for: tar_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ func TestTar(t *testing.T) {
128128
// `tar -cvf some.tar dir1 dir2 dir3 dir4/dir5 dir6` ... etc.
129129
// The testdata of collection.tar resemble such an archive. the `collection` folder
130130
// is the contents of `collection.tar` extracted
131+
//
131132
//gocyclo:ignore
132133
func TestArchiveCreation(t *testing.T) {
133134
fh, err := os.Open("./testdata/collection.tar")
@@ -197,6 +198,7 @@ func TestArchiveCreation(t *testing.T) {
197198
// evaluated. Also, The fact that this archive contains a single entry, yet the
198199
// entry is associated with a file that has parent directories, means that the
199200
// "." directory should be the lowest sub-directory under which `file` is contained.
201+
//
200202
//gocyclo:ignore
201203
func TestTreeTraversal(t *testing.T) {
202204
fh, err := os.Open("./testdata/traversal.tar")

Diff for: xattr/xattr.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build linux
12
// +build linux
23

34
package xattr

0 commit comments

Comments
 (0)