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

Commit de2f48e

Browse files
authored
Allow blank entry for URL. (#846)
1 parent 5088c3a commit de2f48e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/database/mobile_app.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ func (a *MobileApp) BeforeSave(tx *gorm.DB) error {
8989
}
9090

9191
a.URL = strings.TrimSpace(a.URL)
92-
if a.URL != "" {
93-
a.URLPtr = stringPtr(a.URL)
94-
}
92+
a.URLPtr = stringPtr(a.URL)
9593

9694
// Ensure OS is valid
9795
if a.OS < OSTypeIOS || a.OS > OSTypeAndroid {

0 commit comments

Comments
 (0)