]> Cypherpunks.ru repositories - nncp.git/commitdiff
Do not use multiline const-s with single entry
authorSergey Matveev <stargrave@stargrave.org>
Sun, 13 Aug 2023 16:49:16 +0000 (19:49 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 13 Aug 2023 18:32:25 +0000 (21:32 +0300)
src/mcd.go
src/nncp.go

index aceee17f7baed22d24cf9fb808bda005f25d6d04..a1917121fe7f7cca37f4f403fa60635f558074e6 100644 (file)
@@ -28,9 +28,7 @@ import (
        xdr "github.com/davecgh/go-xdr/xdr2"
 )
 
-const (
-       MCDPort = 5400
-)
+const MCDPort = 5400
 
 type MCD struct {
        Magic  [8]byte
index 8ee3fb0d595a56719dca9bdc6dff7b78bba4aa54..dc64ffc14d0263a559a5663afe4423b880a534d5 100644 (file)
@@ -37,10 +37,9 @@ GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.`
+       Base32Encoded32Len = 52
 )
 
-const Base32Encoded32Len = 52
-
 var (
        Version string = "8.8.4"