Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant V1Job Clone() method #77

Open
Andre-Lx-Costa opened this issue Jun 26, 2024 · 0 comments
Open

Remove redundant V1Job Clone() method #77

Andre-Lx-Costa opened this issue Jun 26, 2024 · 0 comments
Assignees

Comments

@Andre-Lx-Costa
Copy link
Contributor

The method Clone() is redundant as there is DeepClone() with the same functionality.

So the method clone() bellow can be removed:

        /// Clones a job object.
        /// </summary>
        /// <param name="job">V1Job to clone.</param>
        /// <returns>New V1Job object.</returns>
        public static V1Job Clone(this V1Job job) =>
            JsonSerializer.Deserialize<V1Job>(JsonSerializer.Serialize(job));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant