mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +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/"
|
const prefix = "/vmalert/"
|
||||||
|
|
||||||
|
// Prefix returns "/vmalert/" prefix if it is missing in the path.
|
||||||
func Prefix(path string) string {
|
func Prefix(path string) string {
|
||||||
if strings.HasPrefix(path, prefix) {
|
if strings.HasPrefix(path, prefix) {
|
||||||
return ""
|
return ""
|
||||||
|
|
Loading…
Reference in a new issue