From c5e8cb25caa39ed018ede5270e1566e8f7448396 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 30 Oct 2017 11:57:24 -0500 Subject: simplify things (#7735) --- app/diagnostics.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'app/diagnostics.go') diff --git a/app/diagnostics.go b/app/diagnostics.go index 689a79f81..c0499bd89 100644 --- a/app/diagnostics.go +++ b/app/diagnostics.go @@ -86,10 +86,7 @@ func SendDiagnostic(event string, properties map[string]interface{}) { } func isDefault(setting interface{}, defaultValue interface{}) bool { - if setting == defaultValue { - return true - } - return false + return setting == defaultValue } func pluginSetting(pluginSettings *model.PluginSettings, plugin, key string, defaultValue interface{}) interface{} { -- cgit v1.2.3-1-g7c22