From 1ec6b1a2589509ac855ec12b4f79e70ef0ee4f66 Mon Sep 17 00:00:00 2001
From: Bo-Yi Wu <appleboy.tw@gmail.com>
Date: Tue, 14 Feb 2017 10:12:03 +0800
Subject: [PATCH] fix: gofmt error. (#918)

---
 models/error.go       | 2 +-
 models/models_test.go | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/models/error.go b/models/error.go
index 8b0781f697..251c90a68d 100644
--- a/models/error.go
+++ b/models/error.go
@@ -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
 }
 
diff --git a/models/models_test.go b/models/models_test.go
index 9bf32f81fa..01d723182a 100644
--- a/models/models_test.go
+++ b/models/models_test.go
@@ -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)