Skip to content

Commit

Permalink
fix: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
anbraten committed Jul 27, 2023
1 parent 647c182 commit 3eda895
Show file tree
Hide file tree
Showing 3 changed files with 1,681 additions and 5,184 deletions.
5 changes: 4 additions & 1 deletion contrib/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ function getVersions(_version: string) {
}

if (_version === 'latest') {
const newestFile = fs.readdirSync(path.resolve(__dirname, '..', 'src', 'schemas')).sort().pop();
const newestFile = fs
.readdirSync(path.resolve(__dirname, '..', 'src', 'schemas'))
.sort()
.pop();
const giteaVersion = newestFile?.replace('v', '').replace('.json', '');

return {
Expand Down
Loading

0 comments on commit 3eda895

Please sign in to comment.