forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
14b2799f08
commit
4add2d1aff
151 changed files with 4561 additions and 3315 deletions
|
@ -82,8 +82,8 @@ export class WikimediaImageProvider extends ImageProvider {
|
|||
public PrepUrl(value: undefined): undefined
|
||||
|
||||
public PrepUrl(value: string): ProvidedImage
|
||||
public PrepUrl(value: string | undefined): ProvidedImage | undefined{
|
||||
if(value === undefined){
|
||||
public PrepUrl(value: string | undefined): ProvidedImage | undefined {
|
||||
if (value === undefined) {
|
||||
return undefined
|
||||
}
|
||||
value = WikimediaImageProvider.removeCommonsPrefix(value)
|
||||
|
@ -120,7 +120,7 @@ export class WikimediaImageProvider extends ImageProvider {
|
|||
return [Promise.resolve(this.UrlForImage("File:" + value))]
|
||||
}
|
||||
|
||||
public async DownloadAttribution(img: {url: string}): Promise<LicenseInfo> {
|
||||
public async DownloadAttribution(img: { url: string }): Promise<LicenseInfo> {
|
||||
const filename = WikimediaImageProvider.ExtractFileName(img.url)
|
||||
|
||||
if (filename === "") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue