Skip to content

Instantly share code, notes, and snippets.

@wwalker
Created February 9, 2023 00:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wwalker/6003234fee240b2a873b2db3289f2508 to your computer and use it in GitHub Desktop.
Save wwalker/6003234fee240b2a873b2db3289f2508 to your computer and use it in GitHub Desktop.
[Style/RedundantBegin] Redundant `begin` block detected
Why does this say "[Style/RedundantBegin] Redundant `begin` block detected" (from vim Syntastic)
def s3_file_exists?(bucket : String, s3_path : String) : Bool
begin
@s3_client.head_object(bucket, s3_path)
true
rescue ex : Exception
false
end
end # def s3_file_exists?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment