Jelajahi Sumber

routes/home.go linted

Yoginth 7 tahun lalu
induk
melakukan
667ddfba93
2 mengubah file dengan 18 tambahan dan 18 penghapusan
  1. 17 17
      routes/home.go
  2. 1 1
      routes/install.go

+ 17 - 17
routes/home.go

@@ -10,22 +10,22 @@ import (
 )
 
 const (
-  	// HOME page template
-	HOME                  = "home"
-  
-  	// EXPLORE_HOME page template
-	EXPLORE_HOME          = "explore/home"
-  
-  	// EXPLORE_REPOS page template
-	EXPLORE_REPOS         = "explore/repos"
-  
-  	// EXPLORE_USERS page template
-	EXPLORE_USERS         = "explore/users"
-  
-  	// EXPLORE_TRENDING page template
-	EXPLORE_TRENDING      = "explore/trending"
-  
-  	// EXPLORE_ORGANIZATIONS page template
+	// HOME page template
+	HOME = "home"
+
+	// EXPLORE_HOME page template
+	EXPLORE_HOME = "explore/home"
+
+	// EXPLORE_REPOS page template
+	EXPLORE_REPOS = "explore/repos"
+
+	// EXPLORE_USERS page template
+	EXPLORE_USERS = "explore/users"
+
+	// EXPLORE_TRENDING page template
+	EXPLORE_TRENDING = "explore/trending"
+
+	// EXPLORE_ORGANIZATIONS page template
 	EXPLORE_ORGANIZATIONS = "explore/organizations"
 )
 
@@ -100,7 +100,7 @@ func ExploreRepos(c *context.Context) {
 	}
 
 	keyword := c.Query("q")
-  	// Search a repository
+	// Search a repository
 	repos, count, err := models.SearchRepositoryByName(&models.SearchRepoOptions{
 		Keyword:  keyword,
 		UserID:   c.UserID(),

+ 1 - 1
routes/install.go

@@ -28,7 +28,7 @@ import (
 )
 
 const (
-  	// INSTALL page template
+	// INSTALL page template
 	INSTALL = "install"
 )