Skip to content

Commit e31f2af

Browse files
committed
move to scripts
1 parent a511f6a commit e31f2af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ coderd/database/generate: fmt/sql coderd/database/dump.sql $(wildcard coderd/dat
2020
.PHONY: coderd/database/generate
2121

2222
coderts/generate: coderts/types.ts
23-
go run coderts/generate.go > coderts/types.ts
23+
go run scripts/coderts/main.go > coderts/types.ts
2424
.PHONY: coderts/generate
2525

2626
fmt/prettier:

coderts/generate.go renamed to scripts/coderts/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func handleTypeSpec(typeSpec *ast.TypeSpec, pos token.Position) (string, error)
9090
}
9191

9292
fieldName := toJSONField(field)
93-
if fieldType == "" {
93+
if fieldName == "" {
9494
continue
9595
}
9696

0 commit comments

Comments
 (0)