use raw string around regex to make go lint happy
This commit is contained in:
parent
d246d0c82a
commit
efa9d94d8e
|
@ -67,7 +67,7 @@ func ParseBootDeviceIdentifier(deviceIdentifier string, generation uint) (string
|
||||||
// not a simple option, check for a controllerType:controllerNumber:controllerLocation formatted
|
// not a simple option, check for a controllerType:controllerNumber:controllerLocation formatted
|
||||||
// device..
|
// device..
|
||||||
|
|
||||||
r, err := regexp.Compile("^(IDE|SCSI):(\\d+):(\\d+)$")
|
r, err := regexp.Compile(`^(IDE|SCSI):(\\d+):(\\d+)$`)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", 0, 0, err
|
return "", 0, 0, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue