Skip to content

Commit

Permalink
Remove incorrect Delete Fork condition (refined-github#1008)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Jan 18, 2018
1 parent 0002e82 commit 9b7ba95
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/features/add-delete-fork-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ import * as pageDetect from '../libs/page-detect';
const repoUrl = pageDetect.getRepoURL();

export default function () {
const canDeleteFork = select.exists('.reponav-item[data-selected-links~="repo_settings"]');
const postMergeDescription = select('#partial-pull-merging .merge-branch-description');

if (canDeleteFork && postMergeDescription) {
if (postMergeDescription) {
const currentBranch = postMergeDescription.querySelector('.commit-ref');
const forkPath = currentBranch ? currentBranch.title.split(':')[0] : null;

Expand Down

0 comments on commit 9b7ba95

Please sign in to comment.