Skip to content

Commit 4b8ced7

Browse files
committed
chore: use accessor instead of property
1 parent 4d9bf4a commit 4b8ced7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

caddy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ func (e Event) Origin() Module { return e.origin } // Returns the module t
11051105
func (e Event) CloudEvent() CloudEvent {
11061106
dataJSON, _ := json.Marshal(e.Data)
11071107
var source string
1108-
if e.origin == nil {
1108+
if e.Origin() == nil {
11091109
source = "caddy"
11101110
} else {
11111111
source = string(e.Origin().CaddyModule().ID)

0 commit comments

Comments
 (0)