Skip to content

Commit c538127

Browse files
committed
fix linting
1 parent da0a674 commit c538127

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

cmd/export-fundables/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ func run(
154154
defer f.Close()
155155

156156
w := csv.NewWriter(f)
157-
w.Write([]string{"name", "isIncluded", "isOnTd", "repos", "entities"})
158-
w.WriteAll(records)
157+
_ = w.Write([]string{"name", "isIncluded", "isOnTd", "repos", "entities"})
158+
_ = w.WriteAll(records)
159159

160160
return nil
161161
}

commands/animate-repos/cmd.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func (c *CmdAnimateRepos) Run(
141141
}
142142

143143
if depCursor != nil {
144-
dc := sql.NullString{*depCursor, true}
144+
dc := sql.NullString{String: *depCursor, Valid: true}
145145

146146
/* autoquery name: RepoUpdateCursorDep :exec
147147
@@ -155,7 +155,7 @@ func (c *CmdAnimateRepos) Run(
155155
CursorDep: dc,
156156
})
157157
} else if manifetsCursor != nil {
158-
mc := sql.NullString{*manifetsCursor, true}
158+
mc := sql.NullString{String: *manifetsCursor, Valid: true}
159159

160160
/* autoquery name: RepoUpdateCursorManifest :exec
161161
@@ -181,6 +181,4 @@ func (c *CmdAnimateRepos) Run(
181181
})
182182
}
183183
}
184-
185-
return nil
186184
}

utils/config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func flatten(config map[string]interface{}) map[string]interface{} {
3333
switch v := v.(type) {
3434
case map[string]interface{}:
3535
for k2, v2 := range flatten(v) {
36-
flat[camelCase(k)+strings.Title(camelCase(k2))] = v2
36+
flat[camelCase(k)+strings.Title(camelCase(k2))] = v2 // nolint:staticcheck
3737
}
3838
default:
3939
flat[k] = v
@@ -43,6 +43,6 @@ func flatten(config map[string]interface{}) map[string]interface{} {
4343
}
4444

4545
func camelCase(s string) string {
46-
out := strings.ReplaceAll(strings.Title(strings.ReplaceAll(s, "-", " ")), " ", "")
46+
out := strings.ReplaceAll(strings.Title(strings.ReplaceAll(s, "-", " ")), " ", "") // nolint:staticcheck
4747
return strings.ToLower(out[:1]) + out[1:]
4848
}

0 commit comments

Comments
 (0)