Skip to content

Commit

Permalink
Removed unnecessary null check for repo.head in git.clone function.
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Apr 15, 2024
1 parent 925b11a commit 16fbb03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Package } from './Package'
export const git = {
clone(cwd: string, repo: RepoConfig, path: string) {
if (repo.head?.includes(':')) {
const [head, subpath] = repo.head!.split(':')
const [head, subpath] = repo.head.split(':')
return sparseClone(join(cwd, path), repo.url, head, subpath)
}
return exec(
Expand Down

0 comments on commit 16fbb03

Please sign in to comment.