common: fix some lint issues

This commit is contained in:
Todd 2017-10-10 20:02:33 -04:00
parent c38bb81110
commit e74c739f40
3 changed files with 3 additions and 6 deletions

View File

@ -68,9 +68,6 @@ func (c ContentTypes) EnsureOverride(path, contentType string) {
for _, ovr := range c.x.Override {
// found one, so just ensure the content type matches and bail
if ovr.PartNameAttr == path {
if !strings.HasPrefix(path, "/") {
path = "/" + path
}
if strings.HasPrefix(contentType, "http") {
gooxml.Log("content type '%s' is incorrect, must not start with http", contentType)
}

View File

@ -30,7 +30,7 @@ func (c CoreProperties) X() *core_properties.CoreProperties {
return c.x
}
// ContentStatus returns the category of the document
// Category returns the category of the document
func (c CoreProperties) Category() string {
if c.x.Category != nil {
return *c.x.Category
@ -51,7 +51,7 @@ func (c CoreProperties) ContentStatus() string {
return ""
}
// SetCategory records the category of the document.
// SetContentStatus records the content status of the document.
func (c CoreProperties) SetContentStatus(s string) {
c.x.ContentStatus = &s
}

View File

@ -64,7 +64,7 @@ func (i ImageRef) Path() string {
return i.img.Path
}
// Path returns the path to an image file
// Size returns the size of an image
func (i ImageRef) Size() image.Point {
return i.img.Size
}