Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
interfaces/mount: improve go identifier names of mountinfo, parse optional fields #3187
Conversation
zyga
added some commits
Apr 12, 2017
| @@ -53,53 +53,56 @@ func ParseInfoEntry(s string) (InfoEntry, error) { | ||
| // 36 35 98:0 /mnt1 /mnt2 rw,noatime master:1 - ext3 /dev/root rw,errors=continue | ||
| // (1)(2)(3) (4) (5) (6) (7) (8) (9) (10) (11) | ||
| if len(fields) < 10 { | ||
| - return e, fmt.Errorf("incorrect number of fields, expected at least 10 but found %d", len(fields)) | ||
| + return nil, fmt.Errorf("incorrect number of fields, expected at least 10 but found %d", len(fields)) |
zyga
Apr 13, 2017
Contributor
No, before those were not pointers so I returned an empty object. In this branch, because I added an array into the structure, I now return a pointer to entry.
zyga
merged commit a9dc415
into
snapcore:master
Apr 13, 2017
6 checks passed
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
xenial-amd64
autopkgtest finished (success)
Details
xenial-i386
autopkgtest finished (success)
Details
xenial-ppc64el
autopkgtest finished (success)
Details
yakkety-amd64
autopkgtest finished (success)
Details
zesty-amd64
autopkgtest finished (success)
Details
zyga
deleted the
zyga:mountinfo-3
branch
Apr 13, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zyga commentedApr 13, 2017
No description provided.