Przeglądaj źródła

fix: gofmt error. (#918)

tags/v1.1.0
Bo-Yi Wu 7 lat temu
rodzic
commit
1ec6b1a258
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1
    1
      models/error.go
  2. 1
    1
      models/models_test.go

+ 1
- 1
models/error.go Wyświetl plik

@@ -410,7 +410,7 @@ func (err ErrRepoAlreadyExist) Error() string {

// ErrRepoRedirectNotExist represents a "RepoRedirectNotExist" kind of error.
type ErrRepoRedirectNotExist struct {
OwnerID int64
OwnerID int64
RepoName string
}


+ 1
- 1
models/models_test.go Wyświetl plik

@@ -11,7 +11,7 @@ import (
)

func Test_parsePostgreSQLHostPort(t *testing.T) {
test := func (input, expectedHost, expectedPort string) {
test := func(input, expectedHost, expectedPort string) {
host, port := parsePostgreSQLHostPort(input)
assert.Equal(t, expectedHost, host)
assert.Equal(t, expectedPort, port)

Ładowanie…
Anuluj
Zapisz