Skip to content

Commit

Permalink
fix: fixed wrong console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
skirianov committed Jun 5, 2023
1 parent e1e4d0f commit 5d25ff8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ import { simpleLog } from '../magento2/functions/terminalHelpers';
const validateURL = async (url: string): Promise<void | any> => {
const error = await validateGitRepositoryURL(url);

error &&
if (error) {
simpleLog(
error instanceof git.Errors.UrlParseError
? t<string>('domain.git_repository_url.is_invalid')
: t<string>('domain.git_repository_url.was_not_found')
);
}

return error;
};
Expand Down

0 comments on commit 5d25ff8

Please sign in to comment.