Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
clayne11 committed Sep 18, 2024
1 parent aa0c50b commit a01332f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion plugin/federation/federation.go
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ func (f *Federation) generateExplicitRequires(
func buildResolverSDL(
resolver *EntityResolver,
multi bool,
) (resolverSDL string, entityResolverInputSDL string) {
) (resolverSDL, entityResolverInputSDL string) {
if multi {
entityResolverInputSDL = buildEntityResolverInputDefinitionSDL(resolver)
resolverSDL := fmt.Sprintf("\t%s(reps: [%s]!): [%s]", resolver.ResolverName, resolver.InputTypeName, resolver.ReturnTypeName)
Expand Down
10 changes: 5 additions & 5 deletions plugin/federation/federation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestNew(t *testing.T) {
},
}
plugin, err := New(1, cfg)
assert.NoError(t, err)
require.NoError(t, err)
assert.NotNil(t, plugin)
})

Expand All @@ -36,7 +36,7 @@ func TestNew(t *testing.T) {
CallArgumentDirectivesWithNull: true,
}
plugin, err := New(1, cfg)
assert.NoError(t, err)
require.NoError(t, err)
assert.NotNil(t, plugin)
})

Expand All @@ -51,7 +51,7 @@ func TestNew(t *testing.T) {
CallArgumentDirectivesWithNull: true,
}
plugin, err := New(1, cfg)
assert.Error(t, err)
require.Error(t, err)
assert.Nil(t, plugin)
})

Expand All @@ -66,7 +66,7 @@ func TestNew(t *testing.T) {
CallArgumentDirectivesWithNull: false,
}
plugin, err := New(1, cfg)
assert.Error(t, err)
require.Error(t, err)
assert.Nil(t, plugin)
})

Expand All @@ -82,7 +82,7 @@ func TestNew(t *testing.T) {
}

plugin, err := New(1, cfg)
assert.Error(t, err)
require.Error(t, err)
assert.Nil(t, plugin)
})
}
Expand Down

0 comments on commit a01332f

Please sign in to comment.