This repository was archived by the owner on Jul 24, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,6 @@ function getBinaryUrl() {
167
167
* callers wants to throw if file not exists before
168
168
* returning.
169
169
*
170
- * @param {Boolean } throwIfNotExists
171
170
* @api public
172
171
*/
173
172
@@ -189,6 +188,13 @@ function getBinaryPath() {
189
188
return binaryPath ;
190
189
}
191
190
191
+ /**
192
+ * Does the supplied binary path exist
193
+ *
194
+ * @param {String } binaryPath
195
+ * @api public
196
+ */
197
+
192
198
function hasBinary ( binaryPath ) {
193
199
return fs . existsSync ( binaryPath ) ;
194
200
}
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ function applyProxy(options, cb) {
81
81
*/
82
82
83
83
function checkAndDownloadBinary ( ) {
84
- if ( sass . getBinaryPath ( ) ) {
84
+ if ( sass . hasBinary ( sass . getBinaryPath ( ) ) ) {
85
85
return ;
86
86
}
87
87
@@ -97,7 +97,7 @@ function checkAndDownloadBinary() {
97
97
return ;
98
98
}
99
99
100
- console . log ( 'Binary downloaded and installed at' , sass . binaryPath ( ) ) ;
100
+ console . log ( 'Binary downloaded and installed at' , sass . getBinaryPath ( ) ) ;
101
101
} ) ;
102
102
} ) ;
103
103
}
You can’t perform that action at this time.
0 commit comments