We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5872b2 commit 0a83ee6Copy full SHA for 0a83ee6
src/targets/go.ts
@@ -139,11 +139,11 @@ export class GoReleaser {
139
const gitUsername = props.username ?? git.username();
140
const gitUseremail = props.email ?? git.email();
141
142
- if (!gitUseremail) {
+ if (!gitUsername) {
143
throw new Error('Unable to detect username. either configure a git user.name or pass GIT_USER_NAME env variable');
144
}
145
146
- if (!gitUsername) {
+ if (!gitUseremail) {
147
throw new Error('Unable to detect user email. either configure a git user.email or pass GIT_USER_EMAIL env variable');
148
149
@@ -344,4 +344,4 @@ export class GoReleaser {
344
345
346
347
-}
+}
0 commit comments