make golintci happy

This commit is contained in:
Siyuan Miao 2025-05-13 20:59:06 +02:00
parent 5a5d4d09fe
commit 1f69b534a5
1 changed files with 4 additions and 3 deletions

View File

@ -235,13 +235,14 @@ func getInitialVirtualMediaState() (*VirtualMediaState, error) {
}
// TODO: check if it's WebRTC or HTTP
if diskPath == "" {
switch diskPath {
case "":
return nil, nil
} else if diskPath == "/dev/nbd0" {
case "/dev/nbd0":
initialState.Source = HTTP
initialState.URL = "/"
initialState.Size = 1
} else {
default:
initialState.Filename = filepath.Base(diskPath)
// get size from file
logger.Info().Str("diskPath", diskPath).Msg("getting file size")