Skip to content

Commit

Permalink
修改了open方法
Browse files Browse the repository at this point in the history
  • Loading branch information
gnuos committed May 12, 2018
1 parent 4e107e5 commit 6700e4d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/unqlite/db.cr
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ module UnQLite
end

def open(path : String) : Void
return if opened?

check_path = ->(x : String -> Pointer(LibUnQLite::StringP)) { if x.empty?
f = ":mem:"
pointerof(f).as(Pointer(LibUnQLite::StringP))
Expand All @@ -34,7 +32,7 @@ module UnQLite
end

def opened? : Bool
@opened
@opened || false
end

def close : Void
Expand Down

0 comments on commit 6700e4d

Please sign in to comment.