summaryrefslogtreecommitdiff
path: root/lib/coderay/duo.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/coderay/duo.rb')
-rw-r--r--lib/coderay/duo.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/duo.rb b/lib/coderay/duo.rb
index 55d1277..171768c 100644
--- a/lib/coderay/duo.rb
+++ b/lib/coderay/duo.rb
@@ -35,7 +35,7 @@ module CodeRay
# The options are forwarded to scanner and encoder
# (see CodeRay.get_scanner_options).
def initialize lang = nil, format = nil, options = {}
- if format == nil and lang.is_a? Hash and lang.size == 1
+ if format.nil? && lang.is_a?(Hash) && lang.size == 1
@lang = lang.keys.first
@format = lang[@lang]
else