Skip to content

Commit 408a31b

Browse files
committed
fix: linting
1 parent ed8cd07 commit 408a31b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
],
4545
"xo/filename-case": 0,
4646
"no-else-return": 0,
47+
"one-var": 0,
4748
"max-statements-per-line": [
4849
"error",
4950
{

siegem.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ var constructTarget = function (options, i) {
9191
if (options.headers) { options.headers.forEach(_.unary(target.header)); }
9292
if (options.data) {
9393
if (options.data.charAt(0) === '@') {
94-
var filePath = path.join(process.cwd(), (options.data.slice(1)));
94+
var filePath = path.resolve(process.cwd(), (options.data.slice(1)));
9595
target.data(fs.readFileSync(filePath));
9696
} else {
9797
target.data(options.data);
@@ -111,7 +111,7 @@ var reporter = new ClassicReporter({quiet: options.quiet});
111111

112112
var targets = [];
113113
if (options.file) {
114-
var file = fs.readFileSync(getAbsolutePath(options.file), 'utf8');
114+
var file = fs.readFileSync(path.resolve(process.cwd(), options.file), 'utf8');
115115
var lines = file.split('\n').filter(Boolean);
116116
var parseOpts = parser.parse.bind(parser);
117117
targets = lines.map(parseOpts).map(constructTarget);

0 commit comments

Comments
 (0)