Skip to content

Commit fdedcd1

Browse files
chore: appease linter and formatter
1 parent 8137a65 commit fdedcd1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

coderd/agentapi/subagent.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,9 @@ func (a *SubAgentAPI) CreateSubAgent(ctx context.Context, req *agentproto.Create
164164

165165
return nil
166166
}()
167-
168167
if err != nil {
169168
appErr := &agentproto.CreateSubAgentResponse_AppCreationError{
170-
Index: int32(i),
169+
Index: int32(i), //nolint:gosec // This would only overflow if we created 2 billion apps.
171170
Error: err.Error(),
172171
}
173172

0 commit comments

Comments
 (0)