summaryrefslogtreecommitdiffstats
path: root/bridge/xmpp
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-02-27 23:38:36 +0100
committerWim <wim@42.be>2018-02-27 23:38:36 +0100
commit20dbd713068347ba9a025e02fb0a101e07e6982c (patch)
treee0185625ceb5ca28793838b4fc5d0a849fcc6eb4 /bridge/xmpp
parent6a727b9723a1e0b708ac2b5f406a599d086bb0ce (diff)
downloadmatterbridge-msglm-20dbd713068347ba9a025e02fb0a101e07e6982c.tar.gz
matterbridge-msglm-20dbd713068347ba9a025e02fb0a101e07e6982c.tar.bz2
matterbridge-msglm-20dbd713068347ba9a025e02fb0a101e07e6982c.zip
Make megacheck happy
Diffstat (limited to 'bridge/xmpp')
-rw-r--r--bridge/xmpp/xmpp.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/bridge/xmpp/xmpp.go b/bridge/xmpp/xmpp.go
index 8b856d93..990d6f3b 100644
--- a/bridge/xmpp/xmpp.go
+++ b/bridge/xmpp/xmpp.go
@@ -234,8 +234,5 @@ func (b *Bxmpp) skipMessage(message xmpp.Chat) bool {
// skip delayed messages
t := time.Time{}
- if message.Stamp == t {
- return true
- }
- return false
+ return message.Stamp == t
}