Skip to content
Snippets Groups Projects
Verified Commit 8349b718 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: wrong type check #42

parent 4c521d1b
No related branches found
No related tags found
No related merge requests found
......@@ -255,7 +255,7 @@ func (j *Job[T]) Execute(ctx context.Context) (RunGenericResult, error) {
newLog.IsSuccessful = true
newLog.ExitCode = 0
} else {
switch v := any(r.Data).(type) {
switch v := any(&r.Data).(type) {
case GetResultAndError:
newLog.ErrorMsg, newLog.ExitCode = v.GetError()
}
......@@ -276,7 +276,7 @@ func (j *Job[T]) Execute(ctx context.Context) (RunGenericResult, error) {
newLog.EndTime = time.Now()
switch v := any(r.Data).(type) {
switch v := any(&r.Data).(type) {
case GetResultAndError:
newLog.Result = v.GetResult()
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment