Skip to content
This repository was archived by the owner on Oct 3, 2025. It is now read-only.

Conversation

@zyxkad
Copy link
Member

@zyxkad zyxkad commented Jun 26, 2024

No description provided.

@zyxkad zyxkad self-assigned this Jun 26, 2024
@LiterMC LiterMC deleted a comment from github-actions bot Jun 26, 2024
@github-actions
Copy link

Change for better format

diff api/user.go.orig api/user.go
--- api/user.go.orig
+++ api/user.go
@@ -56,7 +56,7 @@
 )
 
 type User struct {
-	Username string
-	Password string // as sha256
+	Username    string
+	Password    string // as sha256
 	Permissions PermissionFlag
 }
diff utils/http.go.orig utils/http.go
--- utils/http.go.orig
+++ utils/http.go
@@ -193,7 +193,7 @@
 	Options http.Handler
 	Trace   http.Handler
 
-	allows string
+	allows     string
 	allowsOnce sync.Once
 }
 

@github-actions
Copy link

Change for better format

diff api/user.go.orig api/user.go
--- api/user.go.orig
+++ api/user.go
@@ -56,7 +56,7 @@
 )
 
 type User struct {
-	Username string
-	Password string // as sha256
+	Username    string
+	Password    string // as sha256
 	Permissions PermissionFlag
 }
diff utils/http.go.orig utils/http.go
--- utils/http.go.orig
+++ utils/http.go
@@ -193,7 +193,7 @@
 	Options http.Handler
 	Trace   http.Handler
 
-	allows string
+	allows     string
 	allowsOnce sync.Once
 }
 

@github-actions
Copy link

Change for better format

diff utils/http.go.orig utils/http.go
--- utils/http.go.orig
+++ utils/http.go
@@ -193,7 +193,7 @@
 	Options http.Handler
 	Trace   http.Handler
 
-	allows string
+	allows     string
 	allowsOnce sync.Once
 }
 

@github-actions
Copy link

Change for better format

diff api/stats.go.orig api/stats.go
--- api/stats.go.orig
+++ api/stats.go
@@ -82,7 +82,7 @@
 type AccessStatData struct {
 	Date statTime `json:"date"`
 	accessStatHistoryData
-	Prev  accessStatHistoryData         `json:"prev"`
+	Prev  accessStatHistoryData   `json:"prev"`
 	Years map[string]statInstData `json:"years"`
 
 	Accesses map[string]int `json:"accesses"`
diff utils/http.go.orig utils/http.go
--- utils/http.go.orig
+++ utils/http.go
@@ -193,7 +193,7 @@
 	Options http.Handler
 	Trace   http.Handler
 
-	allows string
+	allows     string
 	allowsOnce sync.Once
 }
 

@zyxkad zyxkad mentioned this pull request Jul 5, 2024
@zyxkad zyxkad linked an issue Aug 8, 2024 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented Apr 4, 2025

Change for better format

diff cluster/stat.go.orig cluster/stat.go
--- cluster/stat.go.orig
+++ cluster/stat.go
@@ -93,7 +93,7 @@
 
 	i := sort.SearchStrings(m.clusters, name)
 	if i < len(m.clusters) && m.clusters[i] == name {
-		m.clusters = slices.Delete(m.clusters, i, i + 1)
+		m.clusters = slices.Delete(m.clusters, i, i+1)
 	}
 }
 
@@ -103,7 +103,7 @@
 
 	i := sort.SearchStrings(m.storages, name)
 	if i < len(m.storages) && m.storages[i] == name {
-		m.storages = slices.Delete(m.storages, i, i + 1)
+		m.storages = slices.Delete(m.storages, i, i+1)
 	}
 }
 
@@ -119,13 +119,13 @@
 		return
 	}
 	newInd := sort.SearchStrings(m.clusters, newName)
-	if oldInd == newInd || oldInd + 1 == newInd {
+	if oldInd == newInd || oldInd+1 == newInd {
 		m.clusters[oldInd] = newName
 	} else if oldInd < newInd {
-		copy(m.clusters[oldInd:], m.clusters[oldInd + 1:newInd])
-		m.clusters[newInd - 1] = newName
-	} else /*if oldInd > newInd*/ {
-		copy(m.clusters[newInd + 1:], m.clusters[newInd:oldInd])
+		copy(m.clusters[oldInd:], m.clusters[oldInd+1:newInd])
+		m.clusters[newInd-1] = newName
+	} else /*if oldInd > newInd*/ {
+		copy(m.clusters[newInd+1:], m.clusters[newInd:oldInd])
 		m.clusters[newInd] = newName
 	}
 	m.Clusters[newName] = m.Clusters[oldName]
@@ -144,13 +144,13 @@
 		return
 	}
 	newInd := sort.SearchStrings(m.storages, newName)
-	if oldInd == newInd || oldInd + 1 == newInd {
+	if oldInd == newInd || oldInd+1 == newInd {
 		m.storages[oldInd] = newName
 	} else if oldInd < newInd {
-		copy(m.storages[oldInd:], m.storages[oldInd + 1:newInd])
-		m.storages[newInd - 1] = newName
-	} else /*if oldInd > newInd*/ {
-		copy(m.storages[newInd + 1:], m.storages[newInd:oldInd])
+		copy(m.storages[oldInd:], m.storages[oldInd+1:newInd])
+		m.storages[newInd-1] = newName
+	} else /*if oldInd > newInd*/ {
+		copy(m.storages[newInd+1:], m.storages[newInd:oldInd])
 		m.storages[newInd] = newName
 	}
 	m.Storages[newName] = m.Storages[oldName]

@github-actions
Copy link

Change for better format

diff api/cluster.go.orig api/cluster.go
--- api/cluster.go.orig
+++ api/cluster.go
@@ -35,7 +35,6 @@
 	ClusterEnabled
 )
 
-
 // Disconnected returns true if the cluster is disconnected from the central server
 func (s ClusterStatus) Disconnected() bool {
 	return s <= ClusterConnecting

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

2 participants