Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Fix default location getter #1350

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix default location getter #1350

wants to merge 1 commit into from

Conversation

Aerijo
Copy link

@Aerijo Aerijo commented Jul 24, 2020

Requirements

  • Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
  • All new code requires tests to ensure against regressions

Description of the Change

Renames getPreferredLocation to getDefaultLocation. The former was introduced in #1056, but the Dock API uses the latter. I don't know if the error was an oversight, or if the API itself changed since then.

There are no references to getPreferredLocation in this code base otherwise. The config value itself is intentionally not advertised, as per #1056 (comment). It was probably intended to be removed at some point, but this PR is just meant to fix the method name, nothing more.

No tests, there were none before and I don't see a point in testing how the Dock controller behaves.

Alternate Designs

NA

Benefits

Get's picked up by Dock API.

Possible Drawbacks

NA

Applicable Issues

Was brought up in https://discuss.atom.io/t/tree-view-on-the-right-side/76834

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

Successfully merging this pull request may close these issues.

2 participants