From 74040ab0afd4f0f083aa081cb560a52814f48823 Mon Sep 17 00:00:00 2001 From: Ola Bini Date: Sat, 21 Dec 2019 23:07:03 +0000 Subject: [PATCH] Make error strings lower case and without punctuation, to be consistent with Golang coding standards --- cmd/grumble/murmurdb.go | 4 ++-- cmd/grumble/server.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/grumble/murmurdb.go b/cmd/grumble/murmurdb.go index dee16aa..2a680b2 100644 --- a/cmd/grumble/murmurdb.go +++ b/cmd/grumble/murmurdb.go @@ -387,12 +387,12 @@ func populateChannelLinkInfo(server *Server, db *sql.DB) (err error) { channel, exists := server.Channels[ChannelID] if !exists { - return errors.New("Attempt to perform link operation on non-existant channel.") + return errors.New("attempt to perform link operation on non-existant channel") } other, exists := server.Channels[LinkID] if !exists { - return errors.New("Attempt to perform link operation on non-existant channel.") + return errors.New("attempt to perform link operation on non-existant channel") } server.LinkChannels(channel, other) diff --git a/cmd/grumble/server.go b/cmd/grumble/server.go index 762b976..ac96503 100644 --- a/cmd/grumble/server.go +++ b/cmd/grumble/server.go @@ -252,7 +252,7 @@ func (server *Server) handleIncomingClient(conn net.Conn) (err error) { client := new(Client) addr := conn.RemoteAddr() if addr == nil { - err = errors.New("Unable to extract address for client.") + err = errors.New("unable to extract address for client") return }