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

[Altered][JobConfigParser] removed redundant lines of code #6639

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

anirudh-hegde
Copy link
Contributor

Purpose of this pull request

Removed redundant code to optimize the code

Does this PR introduce any user-facing change?

No

Check list

Comment on lines 224 to 230
static String createSinkActionName(int configIndex, String pluginName, String table) {
return String.format("Sink[%s]-%s-%s", configIndex, pluginName, table);
if (table != null && !table.isEmpty()) {
return String.format("Sink[%s]-%s", configIndex, pluginName, table);
} else {
return String.format("Source[%s]-%s", configIndex, pluginName);
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @anirudh-hegde , thanks for created this PR, but I think this change has no obvious meaning and is more confusing for callers.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @anirudh-hegde , thanks for created this PR, but I think this change has no obvious meaning and is more confusing for callers.

I think using if condition instead of writing two functions is a better practice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants