mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 14:53:59 +01:00 
			
		
		
		
	DepictedItem.kt: corrected property name format and catch format to for ktlint standard
This commit is contained in:
		
							parent
							
								
									94a007ca63
								
							
						
					
					
						commit
						c6dd524307
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		|  | @ -101,8 +101,8 @@ private fun getImageUrl( | ||||||
|         .substringAfter(":") |         .substringAfter(":") | ||||||
|         .replace(" ", "_") |         .replace(" ", "_") | ||||||
|         .let { |         .let { | ||||||
|             val MD5Hash = getMd5(it) |             val md5Hash = getMd5(it) | ||||||
|             "https://upload.wikimedia.org/wikipedia/commons/thumb/${MD5Hash[0]}/${MD5Hash[0]}${MD5Hash[1]}/$it/$size-$it" |             "https://upload.wikimedia.org/wikipedia/commons/thumb/${md5Hash[0]}/${md5Hash[0]}${md5Hash[1]}/$it/$size-$it" | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
|  | @ -126,7 +126,6 @@ private fun getMd5(input: String): String = | ||||||
|             hashtext = "0$hashtext" |             hashtext = "0$hashtext" | ||||||
|         } |         } | ||||||
|         hashtext |         hashtext | ||||||
|     } // For specifying wrong message digest algorithms |     } catch (e: NoSuchAlgorithmException) { | ||||||
|     catch (e: NoSuchAlgorithmException) { |  | ||||||
|         throw RuntimeException(e) |         throw RuntimeException(e) | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 tristan81
						tristan81