Skip to content

Commit 0a83ee6

Browse files
authored
fix: Input check should match error message (#91)
1 parent f5872b2 commit 0a83ee6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/targets/go.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@ export class GoReleaser {
139139
const gitUsername = props.username ?? git.username();
140140
const gitUseremail = props.email ?? git.email();
141141

142-
if (!gitUseremail) {
142+
if (!gitUsername) {
143143
throw new Error('Unable to detect username. either configure a git user.name or pass GIT_USER_NAME env variable');
144144
}
145145

146-
if (!gitUsername) {
146+
if (!gitUseremail) {
147147
throw new Error('Unable to detect user email. either configure a git user.email or pass GIT_USER_EMAIL env variable');
148148
}
149149

@@ -344,4 +344,4 @@ export class GoReleaser {
344344

345345
}
346346

347-
}
347+
}

0 commit comments

Comments
 (0)