Skip to content

Commit 51651ef

Browse files
committed
chore: remove unused function
1 parent e2f4455 commit 51651ef

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/commands/publish.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -224,16 +224,6 @@ class Publish extends BaseCommand {
224224
}
225225
}
226226

227-
async #latestDistTag (spec) {
228-
try {
229-
const tags = await DistTag.fetchTags(spec, this.npm.flatOptions)
230-
return tags.latest
231-
} catch (_e) {
232-
// this will fail if the package is new, so just return null
233-
return null
234-
}
235-
}
236-
237227
// if it's a directory, read it from the file system
238228
// otherwise, get the full metadata from whatever it is
239229
// XXX can't pacote read the manifest from a directory?

0 commit comments

Comments
 (0)