-
-
Save wwalker/6003234fee240b2a873b2db3289f2508 to your computer and use it in GitHub Desktop.
[Style/RedundantBegin] Redundant `begin` block detected
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Why does this say "[Style/RedundantBegin] Redundant `begin` block detected" (from vim Syntastic) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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