Skip to content

Commit 0150ca0

Browse files
committed
add some comments
1 parent 7ed52fc commit 0150ca0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

models/repo/repo.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ func (repo *Repository) GetRelativePath() string {
224224
return RelativePath(repo.OwnerName, repo.Name)
225225
}
226226

227-
// ObjectFormatName returns the object format name of the repository
227+
// GetObjectFormatName returns the object format name of the repository
228228
func (repo *Repository) GetObjectFormatName() string {
229229
return repo.ObjectFormatName
230230
}
@@ -234,11 +234,12 @@ type StorageRepo struct {
234234
ObjectFormatName string
235235
}
236236

237-
// RelativePath should be an unix style path like username/reponame.git
237+
// GetRelativePath should be an unix style path like username/reponame.git
238238
func (sr StorageRepo) GetRelativePath() string {
239239
return sr.RelativePath
240240
}
241241

242+
// GetObjectFormatName returns the object format name of the repository
242243
func (sr StorageRepo) GetObjectFormatName() string {
243244
return sr.ObjectFormatName
244245
}

0 commit comments

Comments
 (0)