mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-24 01:36:52 +00:00
Add linter revive (#554)
* Add linter revive * Add underscore to variable name to prevent shadowing * Remove unnecessary leading underscore * Revert changes to vendor file * export ConfigFetcher as interface * no 'yoda conditions' * rename envsubst Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
@@ -175,7 +175,7 @@ func (c *Coding) Repo(ctx context.Context, u *model.User, owner, name string) (*
|
||||
Avatar: c.resourceLink(project.Icon),
|
||||
Link: c.resourceLink(project.DepotPath),
|
||||
SCMKind: model.RepoGit,
|
||||
Clone: project.HttpsURL,
|
||||
Clone: project.HTTPSURL,
|
||||
Branch: depot.DefaultBranch,
|
||||
IsSCMPrivate: !project.IsPublic,
|
||||
}, nil
|
||||
@@ -202,7 +202,7 @@ func (c *Coding) Repos(ctx context.Context, u *model.User) ([]*model.Repo, error
|
||||
Avatar: c.resourceLink(project.Icon),
|
||||
Link: c.resourceLink(project.DepotPath),
|
||||
SCMKind: model.RepoGit,
|
||||
Clone: project.HttpsURL,
|
||||
Clone: project.HTTPSURL,
|
||||
Branch: depot.DefaultBranch,
|
||||
IsSCMPrivate: !project.IsPublic,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user