[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][snapshot-team/snapshot][master] 2 commits: Fix deprecated File.exists, removed in ruby 3.2



Title: GitLab

Baptiste Beauplat pushed to branch master at snapshot / snapshot

Commits:

  • 275fb403
    by Baptiste Beauplat at 2025-02-01T17:59:32+01:00
    Fix deprecated File.exists, removed in ruby 3.2
    
  • 63402811
    by Baptiste Beauplat at 2025-02-01T18:09:43+01:00
    Merge branch 'fix/deprecated-exists'
    
    Signed-off-by: Baptiste Beauplat <lyknode@debian.org>
    

1 changed file:

Changes:

  • snapshot
    ... ... @@ -82,7 +82,7 @@ class FileBackend < StorageBackend
    82 82
     
    
    83 83
     	def exists?(digest)
    
    84 84
     		target = _get_path(digest)
    
    85
    -		return File.exists?(target)
    
    85
    +		return File.exist?(target)
    
    86 86
     	end
    
    87 87
     
    
    88 88
     	def store(source, digest)
    


  • Reply to: