mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-10 15:14:09 +00:00
app/vmalert/utils/links.go: document Prefix function, which has been added in b29fafa86b
This commit is contained in:
parent
2e9ae40d56
commit
338fd115d9
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue