Skip to content

Commit 6fcdeea

Browse files
committed
linting
1 parent fa818c5 commit 6fcdeea

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

scripts/apitypings/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func main() {
5959
if err != nil {
6060
log.Fatalf("serialize: %v", err)
6161
}
62-
fmt.Println(output)
62+
_, _ = fmt.Println(output)
6363
}
6464

6565
func TsMutations(ts *guts.Typescript) {

scripts/apitypings/main_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ package main
88

99
import (
1010
"flag"
11-
"log"
1211
"os"
1312
"path/filepath"
1413
"strings"
@@ -39,7 +38,7 @@ func TestGeneration(t *testing.T) {
3938

4039
gen, err := guts.NewGolangParser()
4140
if err != nil {
42-
log.Fatalf("new convert: %v", err)
41+
require.NoError(t, err)
4342
}
4443
err = gen.IncludeGenerate("./" + dir)
4544
require.NoError(t, err)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy