Skip to content

Commit

Permalink
rename int_Length -> intLength
Browse files Browse the repository at this point in the history
  • Loading branch information
kisielk committed Aug 10, 2015
1 parent 3d9f1e4 commit 56510ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions atom.go
Expand Up @@ -118,9 +118,9 @@ func newAtomEntry(i *Item) *AtomEntry {
Updated: anyTimeFormat(time.RFC3339, i.Updated, i.Created),
}

int_Length, err := strconv.ParseInt(i.Link.Length, 10, 64)
intLength, err := strconv.ParseInt(i.Link.Length, 10, 64)

if err == nil && (int_Length > 0 || i.Link.Type != "") {
if err == nil && (intLength > 0 || i.Link.Type != "") {
i.Link.Rel = "enclosure"
x.Link = &AtomLink{Href: i.Link.Href, Rel: i.Link.Rel, Type: i.Link.Type, Length: i.Link.Length}
}
Expand Down
4 changes: 2 additions & 2 deletions rss.go
Expand Up @@ -95,9 +95,9 @@ func newRssItem(i *Item) *RssItem {
PubDate: anyTimeFormat(time.RFC822, i.Created, i.Updated),
}

int_Length, err := strconv.ParseInt(i.Link.Length, 10, 64)
intLength, err := strconv.ParseInt(i.Link.Length, 10, 64)

if err == nil && (int_Length > 0 || i.Link.Type != "") {
if err == nil && (intLength > 0 || i.Link.Type != "") {
item.Enclosure = &RssEnclosure{Url: i.Link.Href, Type: i.Link.Type, Length: i.Link.Length}
}
if i.Author != nil {
Expand Down

0 comments on commit 56510ab

Please sign in to comment.