misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-03-26 13:17:44 +02:00
commit 64af0c4290
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
2 changed files with 9 additions and 7 deletions

View file

@ -484,11 +484,8 @@ func (s *Session) isCapletCommand(line string) (is bool, filename string, argv [
}
capspath := core.Trim(os.Getenv("CAPSPATH"))
for _, folder := range strings.Split(capspath, ":") {
folder = core.Trim(folder)
if folder != "" {
paths = append(paths, folder)
}
for _, folder := range core.SepSplit(capspath, ":") {
paths = append(paths, folder)
}
file := core.Trim(line)