Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit 8d52e51

Browse files
author
Axel Rindle
committed
Rename variable to prevent a TypeError
1 parent 645cf85 commit 8d52e51

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/check.coffee

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ github_graphql = require 'github-graphql-client'
44
semver = require 'semver'
55
query = require './query'
66

7-
87
###
98
Executes a GraphQL query on the API to fetch either the latest release or tag.
109
The returned version is compared to the given version.
@@ -16,14 +15,14 @@ query = require './query'
1615
###
1716
graphql = (options, callback) ->
1817
# build the query
19-
query =
18+
theQuery =
2019
if options.fetchTags
2120
query.tags options.repo, options.owner
2221
else
2322
query.releases options.repo, options.owner
2423

2524
# do the api call
26-
github_graphql (token: options.token, query: query), (err, res) ->
25+
github_graphql (token: options.token, query: theQuery), (err, res) ->
2726
if err
2827
callback err, null
2928
else

0 commit comments

Comments
 (0)