Skip to content

Commit

Permalink
Fix strict settings (#25)
Browse files Browse the repository at this point in the history
It looks like these scripts were trying to use strict Javascript
parsing, but had a typo in the directive. (Or maybe this is a
different directive that I don't know about, I admit I do very little
Javascript development. If that is the case, please just ignore this
pull request. But I could not find any suggestion that this would do
anything.)

Also, `index.js` was missing the directive entirely, and I though you
might want it there as well?
  • Loading branch information
brunchboy authored Feb 26, 2024
1 parent 9f8c72c commit 6299ba4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/delete.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use sstrict'
'use strict'
const Core = require('@actions/core')

module.exports = async (octokit, context) => {
Expand Down
2 changes: 1 addition & 1 deletion src/download.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use sstrict'
'use strict'
const Core = require('@actions/core')
const FS = require('fs');
const Path = require('path');
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use strict'
const github = require('@actions/github')
const Core = require('@actions/core')

Expand Down
4 changes: 2 additions & 2 deletions src/update.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
'use sstrict'
'use strict'
const FS = require('fs')
const Core = require('@actions/core')
const Mime = require('mime-types')
const Path = require('path');
const {
findRelease,
findRelease,
splitAssetsString
} = require('./utils')

Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use sstrict'
'use strict'

const splitAssetsString = assetStr => assetStr.split(';').filter(a => a)

Expand Down

0 comments on commit 6299ba4

Please sign in to comment.