Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
phachon committed Dec 28, 2019
1 parent 2e258a3 commit 0148f88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/utils/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ func (d *document) UpdateSpaceName(oldSpaceName string, newName string) error {

spaceOldDir := d.GetAbsPageFileByPageFile(oldSpaceName)
spaceNewDir := d.GetAbsPageFileByPageFile(newName)
if spaceNewDir == spaceOldDir {
return nil
}
err := os.Rename(spaceOldDir, spaceNewDir)
return err
}
Expand Down

0 comments on commit 0148f88

Please sign in to comment.