Skip to content
Snippets Groups Projects
Commit 4204f9c3 authored by Gabriel Zachmann's avatar Gabriel Zachmann
Browse files

fix oidcflow add to slice

parent 9d7a9e55
No related branches found
No related tags found
No related merge requests found
......@@ -73,11 +73,12 @@ func (f OIDCFlow) MarshalJSON() ([]byte, error) {
}
// AddToSliceIfNotFound adds the OIDCFlow to a slice s if it is not already there
func (f OIDCFlow) AddToSliceIfNotFound(s []OIDCFlow) {
if OIDCFlowIsInSlice(f, s) {
func (f OIDCFlow) AddToSliceIfNotFound(s *[]OIDCFlow) {
if OIDCFlowIsInSlice(f, *s) {
return
}
s = append(s, f)
*s = append(*s, f)
return
}
// OIDCFlowIsInSlice checks if a OIDCFlow is present in a slice of OIDCFlows
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment