Skip to content

Commit

Permalink
style: consistent style
Browse files Browse the repository at this point in the history
  • Loading branch information
siyul-park committed Dec 2, 2023
1 parent c1d4512 commit a5b9130
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pkg/hook/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ type Hook struct {
mu sync.RWMutex
}

var _ symbol.LoadHook = &Hook{}
var _ symbol.UnloadHook = &Hook{}
var _ symbol.LoadHook = (*Hook)(nil)
var _ symbol.UnloadHook = (*Hook)(nil)

// New creates a new Hook instance.
func New() *Hook {
Expand Down
2 changes: 1 addition & 1 deletion pkg/node/onetomany.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type (
}
)

var _ Node = &OneToManyNode{}
var _ Node = (*OneToManyNode)(nil)

// NewOneToManyNode returns a new OneToManyNode.
func NewOneToManyNode(config OneToManyNodeConfig) *OneToManyNode {
Expand Down
2 changes: 1 addition & 1 deletion pkg/node/onetoone.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type (
}
)

var _ Node = &OneToOneNode{}
var _ Node = (*OneToOneNode)(nil)

// NewOneToOneNode returns a new OneToOneNode.
func NewOneToOneNode(config OneToOneNodeConfig) *OneToOneNode {
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/networkx/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ var (
)

var _ node.Node = (*HTTPNode)(nil)
var _ http.Handler = &HTTPNode{}
var _ http.Handler = (*HTTPNode)(nil)
var _ scheme.Spec = (*HTTPSpec)(nil)

var forbiddenResponseHeaderRegexps []*regexp.Regexp
Expand Down
2 changes: 1 addition & 1 deletion pkg/scheme/scheme.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type Scheme struct {
mu sync.RWMutex
}

var _ Codec = &Scheme{}
var _ Codec = (*Scheme)(nil)

// New creates a new Scheme instance.
func New() *Scheme {
Expand Down
2 changes: 1 addition & 1 deletion pkg/scheme/unstructured.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const (
KeyLinks = "links"
)

var _ Spec = &Unstructured{}
var _ Spec = (*Unstructured)(nil)

// NewUnstructured returns a new Unstructured instance with an optional primitive.Map.
func NewUnstructured(doc *primitive.Map) *Unstructured {
Expand Down

0 comments on commit a5b9130

Please sign in to comment.