return secret when creating it
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-11 15:58:33 +11:00
parent 91143f2628
commit 17aa04c1ea
3 changed files with 5 additions and 5 deletions

View File

@@ -40,7 +40,7 @@ type Identifiable interface {
GetId() int
}
// AppendIfNotExists requires a struct to implement the GetId() function
// AppendIfNotExists requires a struct to implement the GetId() method
// Then we can use this function to avoid creating duplicate entries in the slice
func AppendIfNotExists[T Identifiable](slice []T, element T) []T {
for _, existingElement := range slice {