mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-03 23:58:55 +01:00 
			
		
		
		
	Remove usage of .not() where possible
				
					
				
			This commit is contained in:
		@@ -20,7 +20,7 @@ class GetApplicationRelease(
 | 
			
		||||
        val now = Instant.now()
 | 
			
		||||
 | 
			
		||||
        // Limit checks to once every 3 days at most
 | 
			
		||||
        if (arguments.forceCheck.not() && now.isBefore(
 | 
			
		||||
        if (!arguments.forceCheck && now.isBefore(
 | 
			
		||||
                Instant.ofEpochMilli(lastChecked.get()).plus(3, ChronoUnit.DAYS),
 | 
			
		||||
            )
 | 
			
		||||
        ) {
 | 
			
		||||
 
 | 
			
		||||
@@ -22,7 +22,7 @@ class StubSource(
 | 
			
		||||
        throw SourceNotInstalledException()
 | 
			
		||||
 | 
			
		||||
    override fun toString(): String =
 | 
			
		||||
        if (isInvalid.not()) "$name (${lang.uppercase()})" else id.toString()
 | 
			
		||||
        if (!isInvalid) "$name (${lang.uppercase()})" else id.toString()
 | 
			
		||||
 | 
			
		||||
    companion object {
 | 
			
		||||
        fun from(source: Source): StubSource {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user