Browse Source

fix: gofmt error. (#918)

Bo-Yi Wu 3 years ago
parent
commit
1ec6b1a258
2 changed files with 2 additions and 2 deletions
  1. 1 1
      models/error.go
  2. 1 1
      models/models_test.go

+ 1 - 1
models/error.go

@@ -410,7 +410,7 @@ func (err ErrRepoAlreadyExist) Error() string {
410 410
 
411 411
 // ErrRepoRedirectNotExist represents a "RepoRedirectNotExist" kind of error.
412 412
 type ErrRepoRedirectNotExist struct {
413
-	OwnerID int64
413
+	OwnerID  int64
414 414
 	RepoName string
415 415
 }
416 416
 

+ 1 - 1
models/models_test.go

@@ -11,7 +11,7 @@ import (
11 11
 )
12 12
 
13 13
 func Test_parsePostgreSQLHostPort(t *testing.T) {
14
-	test := func (input, expectedHost, expectedPort string) {
14
+	test := func(input, expectedHost, expectedPort string) {
15 15
 		host, port := parsePostgreSQLHostPort(input)
16 16
 		assert.Equal(t, expectedHost, host)
17 17
 		assert.Equal(t, expectedPort, port)