diff options
| author | Shulhan <ms@kilabit.info> | 2018-12-14 19:50:26 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2018-12-14 19:50:26 +0700 |
| commit | 9d3a546df6d696ada07115f638e9378e46a318a5 (patch) | |
| tree | b7b1eca845ac56c8bef6f7e982fd08ac452c428a /package_git.go | |
| parent | 2784a2f51bd77d939b827de242869a124136468a (diff) | |
| download | beku-9d3a546df6d696ada07115f638e9378e46a318a5.tar.xz | |
all: rewrite switch-statement with single case to if-statement
Diffstat (limited to 'package_git.go')
| -rw-r--r-- | package_git.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package_git.go b/package_git.go index cf86b9d..67c5323 100644 --- a/package_git.go +++ b/package_git.go @@ -130,7 +130,7 @@ func (pkg *Package) gitGetBranch() (err error) { } } } - if midx >= 0 { + if midx >= 0 { // nolint: gocritic pkg.RemoteBranch = branches[midx] } else if vidx >= 0 { pkg.RemoteBranch = branches[vidx] |
