diff options
author | Simon Ser <contact@emersion.fr> | 2019-12-03 13:07:25 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-12-03 13:07:25 +0100 |
commit | be14524c3384c88f0a5b0d64c4584abcc6ae0665 (patch) | |
tree | 157663357ab0c55b98d53e7feb8be0f7849f1ff1 /strconv.go | |
parent | 33b8679f1c6b2055196536b3e3ae808195202377 (diff) | |
download | alps-be14524c3384c88f0a5b0d64c4584abcc6ae0665.tar.gz alps-be14524c3384c88f0a5b0d64c4584abcc6ae0665.zip |
Display & download any message part
Diffstat (limited to 'strconv.go')
-rw-r--r-- | strconv.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -18,6 +18,10 @@ func parseUid(s string) (uint32, error) { } func parsePartPath(s string) ([]int, error) { + if s == "" { + return nil, nil + } + l := strings.Split(s, ".") path := make([]int, len(l)) for i, s := range l { |