diff options
Diffstat (limited to 'internal/db/wiki.go')
-rw-r--r-- | internal/db/wiki.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/wiki.go b/internal/db/wiki.go index 5fbb9fb6..f2276b61 100644 --- a/internal/db/wiki.go +++ b/internal/db/wiki.go @@ -122,7 +122,7 @@ func (repo *Repository) updateWikiPage(doer *User, oldTitle, title, content, mes return fmt.Errorf("WriteFile: %v", err) } - if len(message) == 0 { + if message == "" { message = "Update page '" + title + "'" } if err = git.RepoAdd(localPath, git.AddOptions{All: true}); err != nil { |