summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorKoza <[email protected]>2023-04-12 17:32:20 +0200
committerKoza <[email protected]>2023-04-12 17:32:20 +0200
commit518e74f8769daf67fca461139d3c7229abdb6e60 (patch)
treec377925f9f0ea9106d3c7d808130863c11a6ce63 /lib
parent909419f43ed994b7fc4aa247453f1d309be3dab3 (diff)
downloadcaxlsx-518e74f8769daf67fca461139d3c7229abdb6e60.tar.gz
caxlsx-518e74f8769daf67fca461139d3c7229abdb6e60.zip
Rubocop fixes
Diffstat (limited to 'lib')
-rw-r--r--lib/axlsx/drawing/pic.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/axlsx/drawing/pic.rb b/lib/axlsx/drawing/pic.rb
index dda1763c..e31876bf 100644
--- a/lib/axlsx/drawing/pic.rb
+++ b/lib/axlsx/drawing/pic.rb
@@ -98,11 +98,7 @@ module Axlsx
def remote=(v) Axlsx::validate_boolean(v); @remote = v; end
def remote?
- if remote == 1 || remote.to_s == 'true'
- true
- else
- false
- end
+ remote == 1 || remote.to_s == 'true'
end
# The file name of image_src without any path information