Fix faulty option.
This commit is contained in:
parent
d33e69faa3
commit
1c311178e6
@ -23,8 +23,9 @@ class FileStorage::Request
|
|||||||
raise NotLoggedException.new if user.nil?
|
raise NotLoggedException.new if user.nil?
|
||||||
|
|
||||||
if filestoraged.faulty
|
if filestoraged.faulty
|
||||||
if @faulty_nb == 4
|
filestoraged.faulty_nb += 1
|
||||||
@faulty_nb = 0
|
if filestoraged.faulty_nb == 4
|
||||||
|
filestoraged.faulty_nb = 0
|
||||||
raise "FAULTY"
|
raise "FAULTY"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user