gitlab.com/evatix-go/core@v1.3.55/conditional/executeVoidFunctions.go (about)

     1  package conditional
     2  
     3  func executeVoidFunctions(functions []func()) {
     4  	if len(functions) == 0 {
     5  		return
     6  	}
     7  
     8  	for _, currentFunction := range functions {
     9  		if currentFunction == nil {
    10  			continue
    11  		}
    12  
    13  		currentFunction()
    14  	}
    15  }