mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 20:37:12 +01:00
app/vmalert/utils/links.go: document Prefix function, which has been added in b29fafa86b
This commit is contained in:
parent
2e9ae40d56
commit
338fd115d9
@ -4,6 +4,7 @@ import "strings"
|
||||
|
||||
const prefix = "/vmalert/"
|
||||
|
||||
// Prefix returns "/vmalert/" prefix if it is missing in the path.
|
||||
func Prefix(path string) string {
|
||||
if strings.HasPrefix(path, prefix) {
|
||||
return ""
|
||||
|
Loading…
Reference in New Issue
Block a user