Skip to content

Commit f3790b5

Browse files
authored
Fixed bug (#21)
1 parent 39384d7 commit f3790b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/bitbucket/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func (c *Client) filterWorkspaces(ctx context.Context, workspaces []Workspace) (
173173
// We call this function in order to initialize the workspaceID's map. In that case we need to return all workspaces,
174174
// so they can be filtered and only the valid ones are set in the workspaceIds map.
175175
_, ok := c.workspaceIDs[workspace.Id]
176-
if c.workspaceIDs != nil && !ok {
176+
if c.workspaceIDs != nil && len(c.workspaceIDs) > 0 && !ok {
177177
continue
178178
}
179179

0 commit comments

Comments
 (0)