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

Commit 284faac

Browse files
committed
Use existsSync instead of hasRequiredFiles (resolves #177)
1 parent 971973d commit 284faac

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)