Verified Commit 5bfd4c68 authored by Daniel Sonck's avatar Daniel Sonck
Browse files

Fix cursor decoding

parent 936de1f3
Pipeline #432 waiting for manual action with stages
in 4 minutes and 3 seconds
......@@ -62,6 +62,8 @@ app:package:
artifacts: true
- job: app:build
artifacts: true
variables:
GOCACHE: '.go'
stage: package
tags:
- kubernetes
......
......@@ -35,7 +35,7 @@ func (after *Cursor) Parse(prefix string) (start int, err error) {
if !strings.HasPrefix((string)(cursor), prefix+":") {
return 0, fmt.Errorf("illegal cursor")
}
start, err = strconv.Atoi((string)(*after)[len(prefix)+1:])
start, err = strconv.Atoi((string)(cursor)[len(prefix)+1:])
if err!=nil {
return 0, fmt.Errorf("illegal cursor: %w", err)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment