Navigation Menu

Skip to content

Commit

Permalink
groonga: Increment counter correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 24, 2014
1 parent a93cacf commit 1d5ed66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/droonga/plugins/groonga/delete.rb
Expand Up @@ -57,8 +57,8 @@ def validate_parameters

count = 0
count += 1 if key
id += 1 if id
filter += 1 if filter
count += 1 if id
count += 1 if filter
if count > 1
message = "\"key\", \"id\", and \"filter\" are exclusive"
raise CommandError.new(:status => Status::INVALID_ARGUMENT,
Expand Down

0 comments on commit 1d5ed66

Please sign in to comment.