| OLD | NEW |
| 1 // Copyright 2016 The LUCI Authors. All rights reserved. | 1 // Copyright 2016 The LUCI Authors. All rights reserved. |
| 2 // Use of this source code is governed under the Apache License, Version 2.0 | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
| 3 // that can be found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
| 4 | 4 |
| 5 package main | 5 package cli |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "github.com/luci/luci-go/common/config" | 8 "github.com/luci/luci-go/common/config" |
| 9 "github.com/luci/luci-go/logdog/common/types" | 9 "github.com/luci/luci-go/logdog/common/types" |
| 10 ) | 10 ) |
| 11 | 11 |
| 12 func makeUnifiedPath(project config.ProjectName, path types.StreamPath) string { | 12 func makeUnifiedPath(project config.ProjectName, path types.StreamPath) string { |
| 13 val := string(project) | 13 val := string(project) |
| 14 if path != "" { | 14 if path != "" { |
| 15 val += types.StreamNameSepStr + string(path) | 15 val += types.StreamNameSepStr + string(path) |
| 16 } | 16 } |
| 17 return val | 17 return val |
| 18 } | 18 } |
| OLD | NEW |