1
0
Fork 0
mirror of https://github.com/fluffle/goirc synced 2025-05-12 18:44:50 +00:00

Run gofmt to keep people happy!

This commit is contained in:
Alex Bramley 2018-09-06 22:15:14 +01:00
parent 90556d7c97
commit 47162eb0b8
5 changed files with 16 additions and 9 deletions

View file

@ -248,7 +248,9 @@ func (ch *Channel) Equals(other *Channel) bool {
// Duplicates a ChanMode struct.
func (cm *ChanMode) Copy() *ChanMode {
if cm == nil { return nil }
if cm == nil {
return nil
}
c := *cm
return &c
}
@ -260,7 +262,9 @@ func (cm *ChanMode) Equals(other *ChanMode) bool {
// Duplicates a ChanPrivs struct.
func (cp *ChanPrivs) Copy() *ChanPrivs {
if cp == nil { return nil }
if cp == nil {
return nil
}
c := *cp
return &c
}

View file

@ -144,7 +144,9 @@ func (nk *Nick) Equals(other *Nick) bool {
// Duplicates a NickMode struct.
func (nm *NickMode) Copy() *NickMode {
if nm == nil { return nil }
if nm == nil {
return nil
}
n := *nm
return &n
}