Skip to content

Commit f4b4ef4

Browse files
committed
Strip all possible whitespaces from device mode.
Fixes #18.
1 parent e1a5b9f commit f4b4ef4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1751,7 +1751,7 @@ func migrateDevicesFn() {
17511751
found := false
17521752

17531753
// In v3 this column can be an empty string. In v4 the default value is "A".
1754-
if nsDev.Mode == "" {
1754+
if strings.ReplaceAll(nsDev.Mode, " ", "") == "" {
17551755
nsDev.Mode = "A"
17561756
}
17571757

0 commit comments

Comments
 (0)