Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Commit

Permalink
Allow blank entry for URL. (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
flagxor authored Oct 16, 2020
1 parent 5088c3a commit de2f48e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/database/mobile_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ func (a *MobileApp) BeforeSave(tx *gorm.DB) error {
}

a.URL = strings.TrimSpace(a.URL)
if a.URL != "" {
a.URLPtr = stringPtr(a.URL)
}
a.URLPtr = stringPtr(a.URL)

// Ensure OS is valid
if a.OS < OSTypeIOS || a.OS > OSTypeAndroid {
Expand Down

0 comments on commit de2f48e

Please sign in to comment.