summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/workbook/worksheet/cell.rb
diff options
context:
space:
mode:
authorZsolt Kozaroczy <[email protected]>2023-06-12 09:43:12 +0200
committerGitHub <[email protected]>2023-06-12 09:43:12 +0200
commit63a58ba6e35f4807710ba5d8935400d7e502cb30 (patch)
tree2950ea04955fbbe15da886844fb433ebfee60fba /lib/axlsx/workbook/worksheet/cell.rb
parent506415434e1f5584001ab79ac9f028e5ba228ef9 (diff)
parentefe986dc759484cc6f82c4e926ff5128784e0fe8 (diff)
downloadcaxlsx-63a58ba6e35f4807710ba5d8935400d7e502cb30.tar.gz
caxlsx-63a58ba6e35f4807710ba5d8935400d7e502cb30.zip
Merge pull request #280 from tagliala/chore/remove-extra-to-s
Remove redundant `to_s` calls
Diffstat (limited to 'lib/axlsx/workbook/worksheet/cell.rb')
-rw-r--r--lib/axlsx/workbook/worksheet/cell.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/axlsx/workbook/worksheet/cell.rb b/lib/axlsx/workbook/worksheet/cell.rb
index 4e667e06..67f84fbc 100644
--- a/lib/axlsx/workbook/worksheet/cell.rb
+++ b/lib/axlsx/workbook/worksheet/cell.rb
@@ -442,9 +442,10 @@ module Axlsx
end
end
- # Returns the sanatized value
- # TODO find a better way to do this as it accounts for 30% of
+ # Returns the sanitized value
+ # TODO: find a better way to do this as it accounts for 30% of
# processing time in benchmarking...
+ # @return [String] The sanitized value
def clean_value
if (type == :string || type == :text) && !Axlsx.trust_input
Axlsx.sanitize(::CGI.escapeHTML(@value.to_s))