Skip to content

Commit 14d3ece

Browse files
committed
lint
Signed-off-by: Elliot Murphy <statik@users.noreply.github.com>
1 parent 9bb7e20 commit 14d3ece

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

cmd/chapters.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,13 @@ func chapterSplit(cmd *cobra.Command, args []string) {
7070
base := strings.Trim(path.Base(target), path.Ext(target))
7171
targetdir := fmt.Sprintf("split_%s", base)
7272
err = os.MkdirAll(targetdir, 0777)
73+
7374
if err != nil {
7475
log.Fatal(err)
7576
}
7677

7778
var wg sync.WaitGroup
79+
7880
for _, c := range data.Chapters {
7981
wg.Add(1)
8082
go copyChapter(&wg, c, target, targetdir)
@@ -156,6 +158,7 @@ func getChapters(target string) (ffmprobeResponse, error) {
156158
}
157159

158160
err = json.Unmarshal(output, &response)
161+
159162
return response, err
160163
}
161164

@@ -186,12 +189,12 @@ func chapterList(cmd *cobra.Command, args []string) {
186189
log.Fatal("Problem getting chapter data ", err)
187190
}
188191

189-
formattedJson, err := json.MarshalIndent(data, "", " ")
192+
formattedJSON, err := json.MarshalIndent(data, "", " ")
190193
if err != nil {
191194
log.Fatal(err)
192195
}
193196

194-
_, _ = os.Stdout.Write(formattedJson)
197+
_, _ = os.Stdout.Write(formattedJSON)
195198
}
196199

197200
func init() {

0 commit comments

Comments
 (0)