Apply Rubocop Style/NegatedIfElseCondition (#23451)
This commit is contained in:
		
					parent
					
						
							
								8c1b65c7dd
							
						
					
				
			
			
				commit
				
					
						f68bb52556
					
				
			
		
					 5 changed files with 12 additions and 12 deletions
				
			
		|  | @ -19,7 +19,7 @@ class VerifyLinkService < BaseService | |||
| 
 | ||||
|   def perform_request! | ||||
|     @body = Request.new(:get, @url).add_headers('Accept' => 'text/html').perform do |res| | ||||
|       res.code != 200 ? nil : res.body_with_limit | ||||
|       res.code == 200 ? res.body_with_limit : nil | ||||
|     end | ||||
|   end | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue