Skip to content

Commit

Permalink
Strip all possible whitespaces from device mode.
Browse files Browse the repository at this point in the history
Fixes #18.
  • Loading branch information
brocaar committed Dec 6, 2023
1 parent e1a5b9f commit f4b4ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1751,7 +1751,7 @@ func migrateDevicesFn() {
found := false

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

Expand Down

0 comments on commit f4b4ef4

Please sign in to comment.