@@ -283,6 +283,7 @@ func WaitContainer(w http.ResponseWriter, r *http.Request) {
283283 utils .WaitContainerDocker (w , r )
284284}
285285
286+ //nolint:staticcheck
286287func convertSecondaryIPPrefixLen (input * define.InspectNetworkSettings , output * handlers.LegacyNetworkSettings ) {
287288 for index , ip := range input .SecondaryIPAddresses {
288289 output .SecondaryIPAddresses [index ].PrefixLen = ip .PrefixLength
@@ -446,6 +447,7 @@ func LibpodToContainer(l *libpod.Container, sz bool) (*handlers.Container, error
446447 }, nil
447448}
448449
450+ //nolint:staticcheck
449451func LibpodToContainerJSON (l * libpod.Container , sz bool ) (* handlers.LegacyImageInspect , error ) {
450452 imageID , imageName := l .Image ()
451453 inspect , err := l .Inspect (sz )
@@ -544,7 +546,7 @@ func LibpodToContainerJSON(l *libpod.Container, sz bool) (*handlers.LegacyImageI
544546 Data : inspect .GraphDriver .Data ,
545547 }
546548
547- cb := handlers.LegacyImageInspect {
549+ cb := handlers.LegacyImageInspect { //nolint:staticcheck
548550 InspectResponse : container.InspectResponse {
549551 ID : l .ID (),
550552 Created : l .CreatedTime ().UTC ().Format (time .RFC3339Nano ), // Docker uses UTC
@@ -658,7 +660,7 @@ func LibpodToContainerJSON(l *libpod.Container, sz bool) (*handlers.LegacyImageI
658660 return nil , err
659661 }
660662
661- networkSettings := handlers.LegacyNetworkSettings {}
663+ networkSettings := handlers.LegacyNetworkSettings {} //nolint:staticcheck
662664 if err := json .Unmarshal (n , & networkSettings ); err != nil {
663665 return nil , err
664666 }
0 commit comments