simplify things (#7735)

This commit is contained in:
Chris
2017-10-30 11:57:24 -05:00
committed by GitHub
parent 63df41b911
commit c5e8cb25ca
49 changed files with 96 additions and 184 deletions

View File

@@ -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{} {