1
0
Răsfoiți Sursa

seperate ssh constants from schema constants

The contants were placed in the same section as the scheme ones, which
may lead to confusion.
Gibheer 10 ani în urmă
părinte
comite
e3570ae45d
1 a modificat fișierele cu 8 adăugiri și 5 ștergeri
  1. 8 5
      modules/setting/setting.go

+ 8 - 5
modules/setting/setting.go

@@ -27,14 +27,17 @@ import (
 	"github.com/gogits/gogs/modules/user"
 )
 
+const (
+	SSH_PUBLICKEY_CHECK_NATIVE = "native"
+	SSH_PUBLICKEY_CHECK_KEYGEN = "ssh-keygen"
+)
+
 type Scheme string
 
 const (
-	HTTP                       Scheme = "http"
-	HTTPS                      Scheme = "https"
-	FCGI                       Scheme = "fcgi"
-	SSH_PUBLICKEY_CHECK_NATIVE        = "native"
-	SSH_PUBLICKEY_CHECK_KEYGEN        = "ssh-keygen"
+	HTTP  Scheme = "http"
+	HTTPS Scheme = "https"
+	FCGI  Scheme = "fcgi"
 )
 
 type LandingPage string