Skip to content

Commit 219b8ec

Browse files
committed
Fix Rubocop Style/SafeNavigation cop
1 parent 1754a06 commit 219b8ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/type/mount.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def refresh
292292
def value(name)
293293
name = name.to_sym
294294
property = @parameters[name]
295-
property ? property.value : nil
295+
property&.value
296296
end
297297

298298
# Ensure that mounts higher up in the filesystem are mounted first

0 commit comments

Comments
 (0)