Skip to content

Commit 57fb52a

Browse files
committed
style(prettier): format source files
1 parent 88964cb commit 57fb52a

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/commands/commit.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ const getGitRemotes = async () => {
3131

3232
const hasUpstreamBranch = async (): Promise<boolean> => {
3333
try {
34-
await execa('git', ['rev-parse', '--abbrev-ref', '--symbolic-full-name', '@{u}']);
34+
await execa('git', [
35+
'rev-parse',
36+
'--abbrev-ref',
37+
'--symbolic-full-name',
38+
'@{u}'
39+
]);
3540
return true;
3641
} catch {
3742
return false;

src/commands/config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -723,8 +723,7 @@ export const configValidators = {
723723
[CONFIG_KEYS.OCO_API_URL](value: any) {
724724
validateConfig(
725725
CONFIG_KEYS.OCO_API_URL,
726-
typeof value === 'string' &&
727-
/^(https?:\/\/)/.test(value),
726+
typeof value === 'string' && /^(https?:\/\/)/.test(value),
728727
`${value} is not a valid URL. It should start with 'http://' or 'https://'.`
729728
);
730729
return value;

src/prompts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ const getCommitConvention = (fullGitMojiSpec: boolean) =>
9898
fullGitMojiSpec
9999
? FULL_GITMOJI_SPEC
100100
: config.OCO_EMOJI
101-
? GITMOJI_HELP
102-
: CONVENTIONAL_COMMIT_KEYWORDS;
101+
? GITMOJI_HELP
102+
: CONVENTIONAL_COMMIT_KEYWORDS;
103103

104104
const getDescriptionInstruction = () =>
105105
config.OCO_DESCRIPTION

src/utils/proxy.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import axios from 'axios';
22
import { HttpsProxyAgent } from 'https-proxy-agent';
3-
import {
4-
Agent,
5-
ProxyAgent,
6-
setGlobalDispatcher
7-
} from 'undici';
3+
import { Agent, ProxyAgent, setGlobalDispatcher } from 'undici';
84

95
export type ProxySetting = string | null | undefined;
106

0 commit comments

Comments
 (0)