Skip to content

Commit 12f8c35

Browse files
committedSep 17, 2024·
fix(lint): indentation
1 parent 4377111 commit 12f8c35

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed
 

Diff for: ‎src/module.ts

+8-10
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ export interface ModuleOptions {
1818
gitInfo: GitInfo | null
1919
}
2020

21-
export interface ModuleHooks {}
22-
2321
export default defineNuxtModule<ModuleOptions>({
2422
meta: {
2523
name: 'studio',
@@ -187,18 +185,18 @@ function _getGitEnv(): GitInfo {
187185
const envInfo = {
188186
// Provider
189187
provider: process.env.VERCEL_GIT_PROVIDER // vercel
190-
|| (process.env.GITHUB_SERVER_URL ? 'github' : undefined) // github
191-
|| '',
188+
|| (process.env.GITHUB_SERVER_URL ? 'github' : undefined) // github
189+
|| '',
192190
// Owner
193191
owner: process.env.VERCEL_GIT_REPO_OWNER // vercel
194-
|| process.env.GITHUB_REPOSITORY_OWNER // github
195-
|| process.env.CI_PROJECT_PATH?.split('/').shift() // gitlab
196-
|| '',
192+
|| process.env.GITHUB_REPOSITORY_OWNER // github
193+
|| process.env.CI_PROJECT_PATH?.split('/').shift() // gitlab
194+
|| '',
197195
// Name
198196
name: process.env.VERCEL_GIT_REPO_SLUG
199-
|| process.env.GITHUB_REPOSITORY?.split('/').pop() // github
200-
|| process.env.CI_PROJECT_PATH?.split('/').splice(1).join('/') // gitlab
201-
|| '',
197+
|| process.env.GITHUB_REPOSITORY?.split('/').pop() // github
198+
|| process.env.CI_PROJECT_PATH?.split('/').splice(1).join('/') // gitlab
199+
|| '',
202200
// Url
203201
url: process.env.REPOSITORY_URL || '', // netlify
204202
}

0 commit comments

Comments
 (0)