mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-11-04 12:28:25 +00:00 
			
		
		
		
	remove result from status requester
This commit is contained in:
		
							parent
							
								
									7ff2c2c658
								
							
						
					
					
						commit
						2eff0bbc5c
					
				@ -68,7 +68,6 @@ internal class StatusRequester {
 | 
			
		||||
    data class RequestResult(
 | 
			
		||||
        val getMethod: GetMethod,
 | 
			
		||||
        val status: Int,
 | 
			
		||||
        val result: RemoteOperationResult<OwnCloudVersion>,
 | 
			
		||||
        val redirectedToUnsecureLocation: Boolean
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
@ -86,7 +85,7 @@ internal class StatusRequester {
 | 
			
		||||
                else RemoteOperationResult(getMethod)
 | 
			
		||||
 | 
			
		||||
            if (result.redirectedLocation.isNullOrEmpty() || result.isSuccess) {
 | 
			
		||||
                return RequestResult(getMethod, status, result, redirectedToUnsecureLocation)
 | 
			
		||||
                return RequestResult(getMethod, status, redirectedToUnsecureLocation)
 | 
			
		||||
            } else {
 | 
			
		||||
                val nextLocation = updateLocationWithRedirectPath(currentLocation, result.redirectedLocation)
 | 
			
		||||
                redirectedToUnsecureLocation =
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user