Skip to content

Commit

Permalink
Remove code for generating unique ID. (#1626)
Browse files Browse the repository at this point in the history
Signed-off-by: BugDiver <vinaysh@thoughtworks.com>
  • Loading branch information
Vinay Shankar Shukla authored Apr 24, 2020
1 parent fe80815 commit f350f24
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions skel/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
"github.com/getgauge/common"
"github.com/getgauge/gauge/config"
"github.com/getgauge/gauge/logger"
uuid "github.com/satori/go.uuid"
)

func CreateSkelFilesIfRequired() {
Expand All @@ -49,11 +48,6 @@ func CreateSkelFilesIfRequired() {
writeFile(filepath.Join(p, "skel", "example.spec"), ExampleSpec, false)
writeFile(filepath.Join(p, "skel", "env", "default.properties"), DefaultProperties, false)
writeFile(filepath.Join(p, "skel", ".gitignore"), Gitignore, false)

idFile := filepath.Join(p, "id")
if !common.FileExists(idFile) {
writeFile(idFile, uuid.NewV4().String(), false)
}
}

func writeFile(path, text string, overwrite bool) {
Expand Down

0 comments on commit f350f24

Please sign in to comment.