We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fdbef9 commit 81cd8f3Copy full SHA for 81cd8f3
1 file changed
azureappconfiguration/azureappconfiguration.go
@@ -258,6 +258,10 @@ func (azappcfg *AzureAppConfiguration) Refresh(ctx context.Context) error {
258
// Parameters:
259
// - callback: A function with no parameters that will be called after a successful refresh
260
func (azappcfg *AzureAppConfiguration) OnRefreshSuccess(callback func()) {
261
+ if callback == nil {
262
+ return
263
+ }
264
+
265
azappcfg.onRefreshSuccess = append(azappcfg.onRefreshSuccess, callback)
266
}
267
0 commit comments