return secret when creating it
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user