mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-11-03 11:00:05 +00:00
runtime: Fix gofmt issues
It seems that bumping the version of golang and golangci-lint new format changes are required. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
@@ -15,9 +15,9 @@ import (
|
||||
// checkValid determines if the specified string is valid or not.
|
||||
// It looks for:
|
||||
//
|
||||
// - Invalid (unprintable) characters.
|
||||
// - Standard golang error strings added by the formatting functions into the
|
||||
// resulting strings when issues are detected.
|
||||
// - Invalid (unprintable) characters.
|
||||
// - Standard golang error strings added by the formatting functions into the
|
||||
// resulting strings when issues are detected.
|
||||
func checkValid(value string) error {
|
||||
if value == "" {
|
||||
return nil
|
||||
|
||||
@@ -45,12 +45,11 @@ const logEntryFormatVersion = "0.0.2"
|
||||
//
|
||||
// Notes:
|
||||
//
|
||||
// - An anonymous field is not used to distinguish between the two
|
||||
// categories of fields because that extra layer becomes visible when the
|
||||
// struct is converted to various formats (specifically CSV, text and YAML).
|
||||
// - An anonymous field is not used to distinguish between the two
|
||||
// categories of fields because that extra layer becomes visible when the
|
||||
// struct is converted to various formats (specifically CSV, text and YAML).
|
||||
//
|
||||
// - XXX: If you change this struct, update logEntryFormatVersion!
|
||||
//
|
||||
type LogEntry struct {
|
||||
// Used to store additional (non-standard) fields
|
||||
Data MapSS
|
||||
|
||||
Reference in New Issue
Block a user