Skip to content

Commit

Permalink
Remove safeguards around rename functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
kayex committed Oct 20, 2020
1 parent 03ca734 commit 4ca82fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
10 changes: 4 additions & 6 deletions cmd/sammy.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,10 @@ func main() {
os.Exit(0)
}

/*
err = sammy.Rename(cs)
if err != nil {
handleError(l, err, debug)
}
*/
err = sammy.Rename(cs)
if err != nil {
handleError(l, err, debug)
}

err = printChangeSet(l, dir, cs)
if err != nil {
Expand Down
1 change: 0 additions & 1 deletion sammy.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ func GenerateChangeSet(l *log.Logger, dir string, tfs ...Transformer) (map[strin
}

func Rename(cs map[string]string) error {
return nil
for o, n := range cs {
err := os.Rename(o, n)
if err != nil {
Expand Down

0 comments on commit 4ca82fe

Please sign in to comment.