Skip to content

Commit be367a3

Browse files
committed
placate the linter
Signed-off-by: Andrew Thornton <[email protected]>
1 parent 38353f3 commit be367a3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

services/migrations/codebase.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,17 @@ func NewCodebaseDownloader(ctx context.Context, projectURL *url.URL, project, re
112112
}
113113

114114
// String implements Stringer
115-
func (g *CodebaseDownloader) String() string {
116-
return fmt.Sprintf("migration from codebase server %s %s/%s", g.baseURL, g.project, g.repoName)
115+
func (d *CodebaseDownloader) String() string {
116+
return fmt.Sprintf("migration from codebase server %s %s/%s", d.baseURL, d.project, d.repoName)
117117
}
118118

119119
// ColorFormat provides a basic color format for a GogsDownloader
120-
func (g *CodebaseDownloader) ColorFormat(s fmt.State) {
121-
if g == nil {
120+
func (d *CodebaseDownloader) ColorFormat(s fmt.State) {
121+
if d == nil {
122122
log.ColorFprintf(s, "<nil: CodebaseDownloader>")
123123
return
124124
}
125-
log.ColorFprintf(s, "migration from codebase server %s %s/%s", g.baseURL, g.project, g.repoName)
125+
log.ColorFprintf(s, "migration from codebase server %s %s/%s", d.baseURL, d.project, d.repoName)
126126
}
127127

128128
// FormatCloneURL add authentication into remote URLs

0 commit comments

Comments
 (0)