summaryrefslogtreecommitdiffstats
path: root/app/diagnostics.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-10-30 11:57:24 -0500
committerGitHub <noreply@github.com>2017-10-30 11:57:24 -0500
commitc5e8cb25caa39ed018ede5270e1566e8f7448396 (patch)
tree80f9f8957d4ff8458ecf9631135c916df25544bd /app/diagnostics.go
parent63df41b91110bac06baffef87fe0c1952b47ac93 (diff)
downloadchat-c5e8cb25caa39ed018ede5270e1566e8f7448396.tar.gz
chat-c5e8cb25caa39ed018ede5270e1566e8f7448396.tar.bz2
chat-c5e8cb25caa39ed018ede5270e1566e8f7448396.zip
simplify things (#7735)
Diffstat (limited to 'app/diagnostics.go')
-rw-r--r--app/diagnostics.go5
1 files changed, 1 insertions, 4 deletions
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{} {