Skip to content

Commit 467acab

Browse files
committed
direct: remove duplicate MarshalJSON/UnmarshalJSON methods from MlflowModelRemote
Rebase introduced duplicate method declarations; keep only the intended pair. Co-authored-by: Isaac
1 parent 6d6ab62 commit 467acab

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

bundle/direct/dresources/model.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,6 @@ type MlflowModelRemote struct {
2424
ModelId string `json:"model_id"`
2525
}
2626

27-
// Custom marshalers needed because embedded ml.ModelDatabricks has its own
28-
// MarshalJSON which would otherwise take over and ignore model_id.
29-
func (s *MlflowModelRemote) UnmarshalJSON(b []byte) error {
30-
return marshal.Unmarshal(b, s)
31-
}
32-
33-
func (s MlflowModelRemote) MarshalJSON() ([]byte, error) {
34-
return marshal.Marshal(s)
35-
}
36-
3727
// Custom marshalers needed because embedded ml.ModelDatabricks has its own MarshalJSON
3828
// that otherwise shadows the outer struct's fields (model_id gets dropped without this).
3929
func (r *MlflowModelRemote) UnmarshalJSON(b []byte) error {

0 commit comments

Comments
 (0)