mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Merge pull request #101576 from m14815/commit-21.4.4
kubeadm: change comment about json.Unmarshaller to json.Unmarshaler
This commit is contained in:
commit
b31f31cdbe
@ -40,7 +40,7 @@ func (bts BootstrapTokenString) MarshalJSON() ([]byte, error) {
|
|||||||
return []byte(fmt.Sprintf(`"%s"`, bts.String())), nil
|
return []byte(fmt.Sprintf(`"%s"`, bts.String())), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalJSON implements the json.Unmarshaller interface.
|
// UnmarshalJSON implements the json.Unmarshaler interface.
|
||||||
func (bts *BootstrapTokenString) UnmarshalJSON(b []byte) error {
|
func (bts *BootstrapTokenString) UnmarshalJSON(b []byte) error {
|
||||||
// If the token is represented as "", just return quickly without an error
|
// If the token is represented as "", just return quickly without an error
|
||||||
if len(b) == 0 {
|
if len(b) == 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user