mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 23:12:33 -05:00
fix rubocop
This commit is contained in:
1 parent
f9c12b9d78
commit
9bfa6f7f4a
25 files changed
+27
-52
No files matched your search
@@ -53,7 +53,7 @@ class PreviewDocumentPageController < ActionController::API
|
||||
File.open(file_path, File::RDWR | File::CREAT, 0o644) do |file|
|
||||
file.flock(File::LOCK_EX)
|
||||
|
||||
# rubocop:disable Style/ZeroLengthPredicate
|
||||
# rubocop:disable-next Style/ZeroLengthPredicate
|
||||
if file.size.zero?
|
||||
cleanup_stale_tempfiles
|
||||
|
||||
@@ -63,7 +63,6 @@ class PreviewDocumentPageController < ActionController::API
|
||||
else
|
||||
FileUtils.touch(file_path)
|
||||
end
|
||||
# rubocop:enable Style/ZeroLengthPredicate
|
||||
|
||||
file.flock(File::LOCK_UN)
|
||||
|
||||
|
||||
Reference in new issue
Block a user