mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 06:52:43 +01:00
remove/fix radix rule
This commit is contained in:
@@ -15,7 +15,7 @@ function optionalBoolean(e: Element, name: string): boolean | undefined {
|
||||
}
|
||||
|
||||
function requiredInt(e: Element, name: string): number {
|
||||
return parseInt(e.getAttribute(name) as string)
|
||||
return parseInt(e.getAttribute(name) as string, 10)
|
||||
}
|
||||
|
||||
function optionalInt(e: Element, name: string): number | undefined {
|
||||
|
||||
@@ -65,7 +65,7 @@ export class GetIndexesResponse {
|
||||
const indexesElement = xml.getElementsByTagName('indexes')[0]
|
||||
|
||||
this.ignoredArticles = indexesElement.getAttribute('ignoredArticles') as string
|
||||
this.lastModified = parseInt(indexesElement.getAttribute('lastModified') as string)
|
||||
this.lastModified = parseInt(indexesElement.getAttribute('lastModified') as string, 10)
|
||||
|
||||
const artistElements = xml.getElementsByTagName('artist')
|
||||
for (let i = 0; i < artistElements.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user