remove timestamp method

This commit is contained in:
filifa committed 2024-07-13 18:34:30 -05:00
1 parent f6233feef3
commit bd1a1128d8
1 file changed
-14
-14
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")
}