remove domain

This commit is contained in:
Jon Lundy 2021-02-03 17:03:16 -07:00
parent e6fe68a548
commit ea0289c2ac
Signed by untrusted user who does not match committer: xuu
GPG Key ID: C63E6D61F3035024

View File

@ -197,7 +197,7 @@ func (app *wkdApp) createLinks(kind, name string) error {
src := filepath.Join("..", kind, name) src := filepath.Join("..", kind, name)
name = strings.ToLower(name) name = strings.ToLower(name)
hash, domain := hashHuman(name) hash, _ := hashHuman(name)
link := filepath.Join(app.path, ".links", strings.Join([]string{kind, hash}, "-")) link := filepath.Join(app.path, ".links", strings.Join([]string{kind, hash}, "-"))
err := app.replaceLink(src, link) err := app.replaceLink(src, link)
if err != nil { if err != nil {
@ -221,7 +221,7 @@ func (app *wkdApp) removeLinks(kind, name string) error {
} }
name = strings.ToLower(name) name = strings.ToLower(name)
hash, domain := hashHuman(name) hash, _ := hashHuman(name)
link := filepath.Join(app.path, ".links", strings.Join([]string{kind, hash}, "-")) link := filepath.Join(app.path, ".links", strings.Join([]string{kind, hash}, "-"))
err := os.Remove(link) err := os.Remove(link)
if err != nil { if err != nil {