remove timestamp method

This commit is contained in:
filifa 2024-07-10 23:58:07 -05:00
parent f6233feef3
commit bd1a1128d8
1 changed files with 0 additions and 14 deletions

View File

@ -1,9 +1,5 @@
package statsapi
import (
"errors"
)
type DiffPatchParams struct {
GamePk string
StartTimecode string
@ -22,13 +18,3 @@ type instruction struct {
Value any
From string
}
func (p *Patch) Timestamp() (string, error) {
for _, d := range p.Diff {
if d.Op == "replace" && d.Path == "/metaData/timeStamp" {
return d.Value.(string), nil
}
}
return "", errors.New("could not find replacement timestamp")
}