Skip to content

Commit 20cc6b9

Browse files
committed
small cleanup changes
1 parent b10a63d commit 20cc6b9

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

activities/crop_shorts.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type CropShortResult struct {
2121
Arguments []string
2222
}
2323

24-
func (ua UtilActivities) CropShortActivity(_ context.Context, params CropShortInput) (*CropShortResult, error) {
24+
func (ua UtilActivities) CropShortActivity(ctx context.Context, params CropShortInput) (*CropShortResult, error) {
2525
cropFilter := buildCropFilter(params.KeyFrames)
2626

2727
args := []string{
@@ -120,10 +120,6 @@ func getParamValue(kf Keyframe, param string) int {
120120
return kf.X
121121
case "Y":
122122
return kf.Y
123-
case "W":
124-
return kf.W
125-
case "H":
126-
return kf.H
127123
}
128124
return 0
129125
}

workflows/export/generate_short.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func GenerateShort(ctx workflow.Context, params GenerateShortDataParams) (*Gener
8888
ImportDate: nil,
8989
BmmTitle: nil,
9090
BmmTrackID: nil,
91-
OriginalLanguage: "",
91+
OriginalLanguage: "no",
9292
TranscribedLanguage: "",
9393
}
9494

@@ -145,10 +145,6 @@ func GenerateShort(ctx workflow.Context, params GenerateShortDataParams) (*Gener
145145
break
146146
}
147147

148-
if statusResult.Status == "failed" || statusResult.Status == "error" {
149-
return nil, fmt.Errorf("job failed with status: %s", statusResult.Status)
150-
}
151-
152148
if statusResult.Status != "in_progress" {
153149
return nil, fmt.Errorf("job failed with status: %s", statusResult.Status)
154150
}

0 commit comments

Comments
 (0)