Skip to content

Commit

Permalink
simplify variable declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
geofffranks authored and ebroberson committed Mar 6, 2024
1 parent e685e5c commit d78ae95
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions depot/steps/emittable_error_test.go
Expand Up @@ -13,8 +13,7 @@ var _ = Describe("EmittableError", func() {
wrappedError := errors.New("the wrapped error")

It("should satisfy the error interface", func() {
var err error
err = steps.NewEmittableError(wrappedError, "Fancy")
err := steps.NewEmittableError(wrappedError, "Fancy")
Expect(err).To(HaveOccurred())
})

Expand Down

0 comments on commit d78ae95

Please sign in to comment.