Remove unnecessary no match condition
This commit is contained in:
parent
2716d912ea
commit
341e245c09
1 changed files with 4 additions and 5 deletions
|
@ -611,10 +611,9 @@ start_from_file(PCLopts) ->
|
||||||
nomatch ->
|
nomatch ->
|
||||||
Acc;
|
Acc;
|
||||||
{match, [Int]} when is_list(Int) ->
|
{match, [Int]} when is_list(Int) ->
|
||||||
Acc ++ [list_to_integer(Int)];
|
Acc ++ [list_to_integer(Int)]
|
||||||
_ ->
|
end
|
||||||
Acc
|
end,
|
||||||
end end,
|
|
||||||
[],
|
[],
|
||||||
Filenames),
|
Filenames),
|
||||||
TopManSQN = lists:foldl(fun(X, MaxSQN) -> max(X, MaxSQN) end,
|
TopManSQN = lists:foldl(fun(X, MaxSQN) -> max(X, MaxSQN) end,
|
||||||
|
@ -1677,7 +1676,7 @@ coverage_test() ->
|
||||||
ok = pcl_close(PCL),
|
ok = pcl_close(PCL),
|
||||||
|
|
||||||
ManifestFP = filepath(RootPath, manifest),
|
ManifestFP = filepath(RootPath, manifest),
|
||||||
file:write_file(ManifestFP ++ "/yeszero_123.man", term_to_binary("hello")),
|
ok = file:write_file(ManifestFP ++ "/yeszero_123.man", term_to_binary("hello")),
|
||||||
{ok, PCLr} = pcl_start(#penciller_options{root_path=RootPath,
|
{ok, PCLr} = pcl_start(#penciller_options{root_path=RootPath,
|
||||||
max_inmemory_tablesize=1000}),
|
max_inmemory_tablesize=1000}),
|
||||||
?assertMatch(Key1, pcl_fetch(PCLr, {o,"Bucket0001", "Key0001", null})),
|
?assertMatch(Key1, pcl_fetch(PCLr, {o,"Bucket0001", "Key0001", null})),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue