aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2019-01-29 05:42:42 +0700
committerShulhan <ms@kilabit.info>2019-01-29 21:35:08 +0700
commit58dae5e87d34c2cae2bf37434a65380e483c2f1d (patch)
treed84482287dacec3399e0c9221c35f6a0b380636c
parent3ac0a3d70edc1bea76b235b15b270e1b957c2603 (diff)
downloadpakakeh.go-58dae5e87d34c2cae2bf37434a65380e483c2f1d.tar.xz
lib/smtp: suppress gocyclo linter warning on handleCommand
The function body may bit too long, may be need to refactor in the future.
-rw-r--r--lib/smtp/server.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/smtp/server.go b/lib/smtp/server.go
index 0e2d0ba5..8d7cf8d5 100644
--- a/lib/smtp/server.go
+++ b/lib/smtp/server.go
@@ -167,8 +167,7 @@ out:
//
// handleCommand from client.
-//
-func (srv *Server) handleCommand(recv *receiver, cmd *Command) (err error) {
+func (srv *Server) handleCommand(recv *receiver, cmd *Command) (err error) { // nolint: gocyclo
if debug.Value > 0 {
log.Printf("handleCommand: %v\n", cmd)
}