Skip to content

Commit

Permalink
golint fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jani Monoses committed Oct 15, 2015
1 parent 5f6c813 commit 775d23c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ func quitGroup(src string, hexid string) error {
return saveGroup(hexid)
}

// GroupUpdateFlag signals that this message updates the group membership or name.
var GroupUpdateFlag uint32 = 1

// GroupLeavelag signals that this message is a group leave message
var GroupLeaveFlag uint32 = 2

// handleGroups is the main entry point for handling the group metadata on messages.
Expand Down
1 change: 1 addition & 0 deletions textsecure.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ func handleMessage(src string, timestamp uint64, b []byte, legacy bool) error {
return handleSyncMessage(src, timestamp, content.GetSyncMessage())
}

// EndSessionFlag signals that this message resets the session
var EndSessionFlag uint32 = 1

func handleFlags(src string, dm *textsecure.DataMessage) (uint32, error) {
Expand Down
2 changes: 1 addition & 1 deletion websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func StartListening() error {

// ErrNotListening is returned when trying to stop listening when there's no
// valid listening connection set up
var ErrNotListening = errors.New("there is no listening connection to stop.")
var ErrNotListening = errors.New("there is no listening connection to stop")

// StopListening disables the receiving of messages.
func StopListening() error {
Expand Down

0 comments on commit 775d23c

Please sign in to comment.