Skip to content

Commit

Permalink
common: fix some lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaliance committed Oct 11, 2017
1 parent c38bb81 commit e74c739
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions common/contenttypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
4 changes: 2 additions & 2 deletions common/coreproperties.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion common/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e74c739

Please sign in to comment.