File tree 1 file changed +2
-8
lines changed 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -665,11 +665,7 @@ func updateRepoUnits(ctx *context.APIContext, opts api.EditRepoOption) error {
665
665
var config * models.ExternalTrackerConfig
666
666
if unit , err := repo .GetUnit (models .UnitTypeExternalTracker ); err != nil {
667
667
// Unit type doesn't exist so we make a new config file, default empty strings
668
- config = & models.ExternalTrackerConfig {
669
- ExternalTrackerURL : "" ,
670
- ExternalTrackerFormat : "" ,
671
- ExternalTrackerStyle : "" ,
672
- }
668
+ config = & models.ExternalTrackerConfig {}
673
669
} else {
674
670
config = unit .ExternalTrackerConfig ()
675
671
}
@@ -745,9 +741,7 @@ func updateRepoUnits(ctx *context.APIContext, opts api.EditRepoOption) error {
745
741
var config * models.ExternalWikiConfig
746
742
if unit , err := repo .GetUnit (models .UnitTypeExternalWiki ); err != nil {
747
743
// Unit type doesn't exist so we make a new config file, default empty strings
748
- config = & models.ExternalWikiConfig {
749
- ExternalWikiURL : "" ,
750
- }
744
+ config = & models.ExternalWikiConfig {}
751
745
} else {
752
746
config = unit .ExternalWikiConfig ()
753
747
}
You can’t perform that action at this time.
0 commit comments