Skip to content

Commit 84af58d

Browse files
asmyasnikovCopilot
andauthored
Update internal/meta/meta.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d02ccfc commit 84af58d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/meta/meta.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ func (m *Meta) meta(ctx context.Context) (_ metadata.MD, err error) {
149149

150150
func (m *Meta) Apply(opts ...Option) *Meta {
151151
for _, opt := range opts {
152-
opt(m)
152+
if opt != nil {
153+
opt(m)
154+
}
153155
}
154156

155157
return m

0 commit comments

Comments
 (0)