Skip to content

Commit

Permalink
I'm confused
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmeow committed Mar 6, 2020
1 parent 808196a commit e2d12a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Test

#
on:
push:
paths:
Expand Down
1 change: 1 addition & 0 deletions curseforge-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ async function getGameVersions(token, endpoint) {
const versionTypeData = Object.values(gameVersionNames).filter((v,i,a) => v != "blank").length > 0 ? JSON.parse(await requestPromise(optionsTypes)) : [];

const filteredVersions = versionData.filter(function(value, index, array) {

let typeId = gameVersionNames.hasOwnProperty(value.name) ? gameVersionNames[value.name] : (gameVersionNames.hasOwnProperty(value.slug) ? gameVersionNames[value.slug] : "");
if(typeId != null && typeId != "blank" && typeId != "") {
if(isID(typeId)) {
Expand Down

0 comments on commit e2d12a9

Please sign in to comment.