mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-20 14:20:00 -08:00
go fmt
This commit is contained in:
parent
083163daf9
commit
20eba760e5
15 changed files with 163 additions and 163 deletions
|
|
@ -330,7 +330,7 @@ func (client *Client) udpRecvLoop() {
|
||||||
case mumbleproto.UDPMessageVoiceCELTAlpha:
|
case mumbleproto.UDPMessageVoiceCELTAlpha:
|
||||||
fallthrough
|
fallthrough
|
||||||
case mumbleproto.UDPMessageVoiceCELTBeta:
|
case mumbleproto.UDPMessageVoiceCELTBeta:
|
||||||
if (client.server.Opus) {
|
if client.server.Opus {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
fallthrough
|
fallthrough
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/golang/protobuf/proto"
|
"github.com/golang/protobuf/proto"
|
||||||
"mumble.info/grumble/pkg/replacefile"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"mumble.info/grumble/pkg/replacefile"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strconv"
|
"strconv"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ func (acl *ACL) IsChannelACL() bool {
|
||||||
// The permission perm must be a single permission and not a combination of permissions.
|
// The permission perm must be a single permission and not a combination of permissions.
|
||||||
func HasPermission(ctx *Context, user User, perm Permission) bool {
|
func HasPermission(ctx *Context, user User, perm Permission) bool {
|
||||||
// We can't check permissions on a nil ctx.
|
// We can't check permissions on a nil ctx.
|
||||||
if (ctx == nil) {
|
if ctx == nil {
|
||||||
panic("acl: HasPermission got nil context")
|
panic("acl: HasPermission got nil context")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ package cryptstate
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"crypto/aes"
|
"crypto/aes"
|
||||||
"testing"
|
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestOCB2AES128Encrypt(t *testing.T) {
|
func TestOCB2AES128Encrypt(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@
|
||||||
package cryptstate
|
package cryptstate
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"unsafe"
|
|
||||||
"golang.org/x/crypto/nacl/secretbox"
|
"golang.org/x/crypto/nacl/secretbox"
|
||||||
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
// secretBoxMode implements the XSalsa20-Poly1305 CryptoMode
|
// secretBoxMode implements the XSalsa20-Poly1305 CryptoMode
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@
|
||||||
package replacefile
|
package replacefile
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"unsafe"
|
|
||||||
"syscall"
|
"syscall"
|
||||||
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue