removed unnecessary condition
This commit is contained in:
parent
60dcb19e87
commit
9b7b45f27c
|
@ -63,7 +63,7 @@ module XGen
|
||||||
|
|
||||||
def save
|
def save
|
||||||
coll = @file.chunk_collection
|
coll = @file.chunk_collection
|
||||||
coll.remove({'_id' => @object_id}) if @object_id
|
coll.remove({'_id' => @object_id})
|
||||||
coll.insert(to_mongo_object)
|
coll.insert(to_mongo_object)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue