]> source.dussan.org Git - gitea.git/commitdiff
seperate ssh constants from schema constants
authorGibheer <gibheer+git@zero-knowledge.org>
Tue, 23 Feb 2016 14:41:44 +0000 (15:41 +0100)
committerGibheer <gibheer+git@zero-knowledge.org>
Tue, 23 Feb 2016 14:41:44 +0000 (15:41 +0100)
The contants were placed in the same section as the scheme ones, which
may lead to confusion.

modules/setting/setting.go

index e667ee7433bec6f3b3862f3409a5a8bd6378b1c0..25b9d8590efac94a8c00ce0add76c60e198b12bf 100644 (file)
@@ -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