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 the "plugin" parameter from all constructors. #8

Closed
frogocomics opened this issue Jan 20, 2016 · 1 comment
Closed

Remove the "plugin" parameter from all constructors. #8

frogocomics opened this issue Jan 20, 2016 · 1 comment

Comments

@frogocomics
Copy link
Contributor

public LoginCommand(FlexibleLogin plugin) {
        this.plugin = plugin;
    }

Look at this constructor. The plugin parameter should not be needed, as I have FlexibleLogin.getInstance() for this reason.

@frogocomics
Copy link
Contributor Author

So instead it could be:

public LoginCommand() {
        this.plugin = FlexibleLogin.getInstance();
    }

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