Skip to content

Commit

Permalink
fix(ls-packages): fix confusing splitEntity arg check
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Nov 12, 2018
1 parent c33cd6f commit 1769090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ cmd.lsPackages = (entity, opts) => {
}

cmd.lsPackages.stream = (entity, opts) => {
validate('SO|SZ', [entity, opts])
opts = AccessConfig(opts)
const {scope, team} = splitEntity(entity)
validate('SSO|SZO', [scope, team, opts])
let uri
if (team) {
uri = `/-/team/${eu(scope)}/${eu(team)}/package`
Expand Down

0 comments on commit 1769090

Please sign in to comment.