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

Commit 758315d

Browse files
authored
Use existsSync instead of hasRequiredFiles (fixes #177) (#178)
Use `existsSync` instead of `hasRequiredFiles` (fixes #177)
2 parents 971973d + 284faac commit 758315d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/detectors/middleman.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
const { existsSync } = require("fs");
22

33
module.exports = function() {
4-
if (!hasRequiredFiles(["config.rb"])) return false;
4+
if (!existsSync("config.rb")) {
5+
return false;
6+
}
57

68
return {
79
type: "middleman",

0 commit comments

Comments
 (0)