summaryrefslogtreecommitdiffstats
path: root/lib/folder/folder-st-disable.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/folder/folder-st-disable.go')
-rw-r--r--lib/folder/folder-st-disable.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/folder/folder-st-disable.go b/lib/folder/folder-st-disable.go
index f90b776..7b53ca8 100644
--- a/lib/folder/folder-st-disable.go
+++ b/lib/folder/folder-st-disable.go
@@ -25,7 +25,11 @@ func NewFolderSTDisable(gc *xdsconfig.Config) *STFolderDisable {
// NewUID Get a UUID
func (f *STFolderDisable) NewUID(suffix string) string {
- return uuid.NewV1().String() + "_" + suffix
+ uuid := uuid.NewV1().String()
+ if len(suffix) > 0 {
+ uuid += "_" + suffix
+ }
+ return uuid
}
// Add a new folder