Skip to content

Commit

Permalink
Fix variable
Browse files Browse the repository at this point in the history
  • Loading branch information
OzzyCzech committed Oct 24, 2022
1 parent bc6bac6 commit f13b108
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
"license": "MIT",
"homepage": "https://ozana.cz",
"bugs": "https://github.com/OzzyCzech/mock-to-openapi/issues",
"repository": {
"type": "git",
"url": "[email protected]:OzzyCzech/mock-to-openapi.git"
},
"author": {
"name": "Roman Ožana",
"email": "[email protected]",
Expand Down Expand Up @@ -42,10 +46,6 @@
"ava": "^4.3.3",
"xo": "^0.52.4"
},
"repository": {
"type": "git",
"url": "[email protected]:OzzyCzech/mock-to-openapi.git"
},
"xo": {
"rules": {
"no-await-in-loop": 0
Expand Down
8 changes: 4 additions & 4 deletions src/get-format.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import {getType} from './get-type.js';

/**
* Detect base64 string
* @param str
* @returns {boolean}
* @param string
*/
function isBase64(string_) {
const dec = Buffer.from(string_, 'base64').toString('utf8');
return string_ === Buffer.from(dec, 'binary').toString('base64');
function isBase64(string) {
const dec = Buffer.from(string, 'base64').toString('utf8');
return string === Buffer.from(dec, 'binary').toString('base64');
}

/**
Expand Down

0 comments on commit f13b108

Please sign in to comment.