Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-artie committed Jun 28, 2024
1 parent 8cdc6e5 commit a0744ed
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/debezium/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,8 @@ type Field struct {
Parameters map[string]any `json:"parameters"`
}

func (f Field) Scale() (int32, error) {
return maputil.GetInt32FromMap(f.Parameters, "scale")
}

func (f Field) GetScaleAndPrecision() (int32, *int32, error) {
scale, scaleErr := f.Scale()
scale, scaleErr := maputil.GetInt32FromMap(f.Parameters, "scale")
if scaleErr != nil {
return 0, nil, scaleErr
}
Expand Down

0 comments on commit a0744ed

Please sign in to comment.