Skip to content

Commit 26a9c8b

Browse files
committed
fix: fix the wrong error return value
Signed-off-by: wangjingcun <[email protected]>
1 parent 98f1ae2 commit 26a9c8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

storybook/storybook.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func (sh *Storybook) Build(ctx context.Context) (err error) {
109109
if err != nil {
110110
return
111111
}
112-
if ctx.Err() != nil {
112+
if err = ctx.Err(); err != nil {
113113
return
114114
}
115115

@@ -119,7 +119,7 @@ func (sh *Storybook) Build(ctx context.Context) (err error) {
119119
if err != nil {
120120
return
121121
}
122-
if ctx.Err() != nil {
122+
if err = ctx.Err(); err != nil {
123123
return
124124
}
125125

@@ -133,7 +133,7 @@ func (sh *Storybook) Build(ctx context.Context) (err error) {
133133
} else {
134134
sh.Log.Info("Storybook is up-to-date, skipping build step.")
135135
}
136-
if ctx.Err() != nil {
136+
if err = ctx.Err(); err != nil {
137137
return
138138
}
139139

0 commit comments

Comments
 (0)