aboutsummaryrefslogtreecommitdiff
path: root/object/tree_parse_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'object/tree_parse_test.go')
-rw-r--r--object/tree_parse_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/object/tree_parse_test.go b/object/tree_parse_test.go
index d4b7c1e6..51c1e5b2 100644
--- a/object/tree_parse_test.go
+++ b/object/tree_parse_test.go
@@ -59,12 +59,12 @@ func TestTreeParseFromGit(t *testing.T) {
for _, want := range inserted.Entries {
got := tree.Entry(want.Name)
- //nolint:staticcheck
- if got == nil {
+
+ if got == nil { //nolint:staticcheck
t.Fatalf("Entry(%q) returned nil", want.Name)
}
- //nolint:staticcheck
- if got.Mode != want.Mode || got.ID != want.ID {
+
+ if got.Mode != want.Mode || got.ID != want.ID { //nolint:staticcheck
t.Fatalf("Entry(%q) mismatch", want.Name)
}
}