Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

Commit 93768c8

Browse files
authored
Accidentally a conditional
1 parent 659e82b commit 93768c8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function detect() {
7575
if (!fs_1.default.existsSync(goBuildTarget)) {
7676
throw new Error(`The build target '${goBuildTarget}' does not exist`);
7777
}
78-
if (goModDir !== '.' && !goBuildTarget.startsWith(goModDir)) {
78+
if (goModDir !== '.') {
7979
if (goBuildTarget.startsWith(goModDir)) {
8080
goBuildTarget = goBuildTarget.replace(goModDir, '');
8181
}

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async function detect () {
4141
if (!fs.existsSync(goBuildTarget)) {
4242
throw new Error(`The build target '${goBuildTarget}' does not exist`)
4343
}
44-
if (goModDir !== '.' && !goBuildTarget.startsWith(goModDir)) {
44+
if (goModDir !== '.') {
4545
if (goBuildTarget.startsWith(goModDir)) {
4646
goBuildTarget = goBuildTarget.replace(goModDir, '')
4747
} else {

0 commit comments

Comments
 (0)