mirror of
https://github.com/mumble-voip/grumble.git
synced 2026-01-25 12:59:10 -08:00
Remove unneded else statements to follow Golang coding standards
This commit is contained in:
parent
6bf58a9f58
commit
c2b5fd9e9d
2 changed files with 14 additions and 16 deletions
|
|
@ -59,9 +59,9 @@ func (pds *PacketData) next() (ret uint64) {
|
|||
ret = uint64(pds.Buf[pds.offset])
|
||||
pds.offset++
|
||||
return
|
||||
} else {
|
||||
pds.ok = false
|
||||
}
|
||||
|
||||
pds.ok = false
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
@ -71,9 +71,9 @@ func (pds *PacketData) Next8() (ret uint8) {
|
|||
ret = uint8(pds.Buf[pds.offset])
|
||||
pds.offset++
|
||||
return
|
||||
} else {
|
||||
pds.ok = false
|
||||
}
|
||||
|
||||
pds.ok = false
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue