aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2018-05-26 17:54:28 +0700
committerShulhan <ms@kilabit.info>2018-05-26 17:54:28 +0700
commit0efa72f0ce5c2dc4d8c88b374d4bf2741141e606 (patch)
treeb53d070922f1879d38ec38ba1eee64172b5ee6bb
parenta4d0854b8c7bfbb5cefe500f7cae1ee753c3d1ff (diff)
downloadbeku-0efa72f0ce5c2dc4d8c88b374d4bf2741141e606.tar.xz
env.removePackage: fix removing single package
-rw-r--r--env.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/env.go b/env.go
index 82ae075..b9d492e 100644
--- a/env.go
+++ b/env.go
@@ -535,7 +535,7 @@ func (env *Env) removePackage(importPath string) (err error) {
}
}
- if idx == 0 {
+ if idx < 0 {
return
}