From a3f48093ebd8fcc3dc2ffefc727378ae8dca7269 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 23 Mar 2018 01:07:44 +0200 Subject: gofmt and govet --- matrix/pushrules/action.go | 4 ++-- matrix/rooms/member.go | 6 +++--- matrix/rooms/room.go | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'matrix') diff --git a/matrix/pushrules/action.go b/matrix/pushrules/action.go index 1de973f..acb97b9 100644 --- a/matrix/pushrules/action.go +++ b/matrix/pushrules/action.go @@ -46,9 +46,9 @@ type PushActionArrayShould struct { // Whether or not the array contained a Notify, DontNotify or Coalesce action type. NotifySpecified bool // Whether or not the event in question should trigger a notification. - Notify bool + Notify bool // Whether or not the event in question should be highlighted. - Highlight bool + Highlight bool // Whether or not the event in question should trigger a sound alert. PlaySound bool diff --git a/matrix/rooms/member.go b/matrix/rooms/member.go index 4af20a6..20c994b 100644 --- a/matrix/rooms/member.go +++ b/matrix/rooms/member.go @@ -35,11 +35,11 @@ type Member struct { // The MXID of the member. UserID string `json:"-"` // The membership status. Defaults to leave. - Membership Membership `json:"membership"` + Membership Membership `json:"membership"` // The display name of the user. Defaults to the user ID. - DisplayName string `json:"displayname"` + DisplayName string `json:"displayname"` // The avatar URL of the user. Defaults to an empty string. - AvatarURL string `json:"avatar_url"` + AvatarURL string `json:"avatar_url"` } // eventToRoomMember converts a m.room.member state event into a Member object. diff --git a/matrix/rooms/room.go b/matrix/rooms/room.go index 4166fd7..56614de 100644 --- a/matrix/rooms/room.go +++ b/matrix/rooms/room.go @@ -42,7 +42,7 @@ type Room struct { topicCache string // fetchHistoryLock is used to make sure multiple goroutines don't fetch history for this room at the same time. - fetchHistoryLock *sync.Mutex `json:"-"` + fetchHistoryLock *sync.Mutex } func (room *Room) LockHistory() { -- cgit v1.2.3