Skip to content

Commit

Permalink
chore: sonar code smell fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hdJerry committed Aug 17, 2023
1 parent b22e823 commit bf7aa9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
14 changes: 5 additions & 9 deletions cra-rxjs-styled-components/src/constants/url.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,13 @@ export const ISSUES_PULLS_URL = ({
order: direction,
};
const queryStrings = convertObjectToQueryString(params);
const milestone_check =
typeof milestone === 'string'
? replaceEncodedSpaceWithPlus(encodeURIComponent(milestone))
: milestone;
const Q = `+is:${state}+is:${type}${
labels ? `+label:"${replaceSpaceWithPlus(labels)}"` : ''
}${
milestone
? `+milestone:"${
typeof milestone === 'string'
? replaceEncodedSpaceWithPlus(encodeURIComponent(milestone))
: milestone
}"`
: ''
}`;
}${milestone ? `+milestone:"${milestone_check}"` : ''}`;
return `${GITHUB_URL_BASE}/search/issues?q=repo:${user}/${repo}${Q}&${queryStrings}`;
};

Expand Down
1 change: 0 additions & 1 deletion cra-rxjs-styled-components/src/types/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// import { Issue } from "../components/issue/Issue/Issue.type";
import { Issue } from '@/components/repo-issues/Issues/Issue.type';
import { PullRequests } from '../components/pull-request/pull-request/PullRequest.type';

Expand Down

0 comments on commit bf7aa9b

Please sign in to comment.