Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
outdead committed Nov 14, 2020
1 parent bd61238 commit ab26e8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions rcon_mockserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,7 @@ func (s *MockServer) handle(conn net.Conn) {

responseBody = request.Body()
case "padding":
response := NewPacket(responseType, responseID, responseBody)
if err := s.writeWithInvalidPadding(conn, responseID, response); err != nil {
s.reportError(fmt.Errorf("handle write response error: %s", err))
}

_ = s.writeWithInvalidPadding(conn, responseID, NewPacket(responseType, responseID, responseBody))
return
default:
responseBody = "unknown command"
Expand Down
4 changes: 2 additions & 2 deletions rcon_test.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package rcon

import (
"encoding/json"
"fmt"
"os"
"strings"
"testing"
"time"

"encoding/json"
"github.com/stretchr/testify/assert"
"strings"
)

func TestDial(t *testing.T) {
Expand Down

0 comments on commit ab26e8d

Please sign in to comment.