Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Empty string check optimization
  • Loading branch information
lafriks committed May 1, 2018
commit 096f9d4feabf1a40929dbd9466004a9c8b13f01b
2 changes: 1 addition & 1 deletion models/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ func (repo *Repository) mustOwner(e Engine) *User {
}

func (repo *Repository) getOwnerName(e Engine) error {
if repo.OwnerName != "" {
if len(repo.OwnerName) > 0 {
return nil
}

Expand Down