Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Okhoshi authored Aug 21, 2017
1 parent 4aecc32 commit dc47e9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/raml10/raml10Converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Raml10Converter extends Converter {

_loadFile(filePath:string, options:any) {
this.filePath = filePath;
if (!urlHeper.isURL(filePath)) {
if (!urlHelper.isURL(filePath)) {
const fileContent = fs.readFileSync(filePath, 'utf8');
this.format = Raml10Converter.detectFormat(fileContent);
}
Expand All @@ -48,7 +48,7 @@ class Raml10Converter extends Converter {
try {
if (!_.isEmpty(api.errors())) this.errors = jsonHelper.parse(api.errors()).filter(log => log.isWarning === false);
this.data = api.expand(true).toJSON(toJSONOptions);
if (urlHeper.isURL(filePath)) {
if (urlHelper.isURL(filePath)) {
this.format = api.RAMLVersion();
}
resolve();
Expand Down

0 comments on commit dc47e9e

Please sign in to comment.