aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/dbi_discreet.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v3/dbi_discreet.rb')
-rw-r--r--lib/sisu/v3/dbi_discreet.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sisu/v3/dbi_discreet.rb b/lib/sisu/v3/dbi_discreet.rb
index 49313a93..07814a1a 100644
--- a/lib/sisu/v3/dbi_discreet.rb
+++ b/lib/sisu/v3/dbi_discreet.rb
@@ -106,7 +106,7 @@ module SiSU_DBI_Discreet #% database building
puts msg
exit
end
- if conn.class==NilClass
+ if conn.is_a?(NilClass)
puts msg
exit
end
@@ -168,7 +168,9 @@ module SiSU_DBI_Discreet #% database building
@db=SiSU_Env::InfoDb.new
@job="sqlite3 #{@db.sqlite.db} < #{@env.processing_path.sqlite}/#{@opt.fns}.sql"
File.new("#{@env.processing_path.sqlite}/#{@opt.fns}.sql",'w+')
- elsif @opt.fns and @opt.fns.inspect =~/create/; nil #sort variations later
+ elsif @opt.fns \
+ and @opt.fns.inspect =~/create/
+ nil #sort variations later
else nil
end
else nil