Skip to content

Commit

Permalink
use parseInt
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Jun 12, 2023
1 parent c775086 commit 50e74d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/xml-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export function parseListParts(xml: string): {
}
if (xmlobj.Part) {
toArray(xmlobj.Part).forEach((p) => {
const part = +toArray(p.PartNumber)[0]
const part = parseInt(toArray(p.PartNumber)[0], 10)
const lastModified = new Date(p.LastModified)
const etag = p.ETag.replace(/^"/g, '')
.replace(/"$/g, '')
Expand Down

0 comments on commit 50e74d5

Please sign in to comment.