From d05ea84b5dfffaedb120e57c27808079fabf1131 Mon Sep 17 00:00:00 2001 From: Kunal Shah Date: Fri, 9 Jan 2015 00:23:06 -0500 Subject: [PATCH] Silence already initialized constant warnings for apps/environments with live reloads --- lib/fastimage.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fastimage.rb b/lib/fastimage.rb index 9d540b6..ad0d10b 100644 --- a/lib/fastimage.rb +++ b/lib/fastimage.rb @@ -63,9 +63,9 @@ class FastImage class CannotParseImage < FastImageException # :nodoc: end - DefaultTimeout = 2 + DefaultTimeout = 2 unless const_defined?(:DefaultTimeout) - LocalFileChunkSize = 256 + LocalFileChunkSize = 256 unless const_defined?(:LocalFileChunkSize) # Returns an array containing the width and height of the image. # It will return nil if the image could not be fetched, or if the image type was not recognised.