shellcheck complains:
```
In modules.d/80lvmthinpool-monitor/start-thinpool-monitor.sh line 12:
[ -n "$_lvm2_thin_device" ] && return $?
^-- SC2319 (warning): This $? refers to a condition, not a command. Assign to a variable to avoid it being overwritten.
```
Let `is_lvm2_thinp_device` directly return the test exit code.
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
_lvm2_thin_device=$(lvm lvs -S 'lv_layout=sparse && lv_layout=thin' \
--nosuffix --noheadings -o vg_name,lv_name "$_device_path" 2> /dev/null)
- [ -n "$_lvm2_thin_device" ] && return $?
+ [ -n "$_lvm2_thin_device" ]
}
for LV in $LVS; do