diff options
| author | Shulhan <ms@kilabit.info> | 2018-05-26 17:54:28 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2018-05-26 17:54:28 +0700 |
| commit | 0efa72f0ce5c2dc4d8c88b374d4bf2741141e606 (patch) | |
| tree | b53d070922f1879d38ec38ba1eee64172b5ee6bb | |
| parent | a4d0854b8c7bfbb5cefe500f7cae1ee753c3d1ff (diff) | |
| download | beku-0efa72f0ce5c2dc4d8c88b374d4bf2741141e606.tar.xz | |
env.removePackage: fix removing single package
| -rw-r--r-- | env.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -535,7 +535,7 @@ func (env *Env) removePackage(importPath string) (err error) { } } - if idx == 0 { + if idx < 0 { return } |
