Skip to content

Commit 331754f

Browse files
committed
Fix (unrelated) jscs complaints
1 parent 7e250f9 commit 331754f

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

stacktrace-gps.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@
227227
* Creating SourceMapConsumers is expensive, so this wraps the creation of a
228228
* SourceMapConsumer in a per-instance cache.
229229
*
230-
* @param sourceMappingURL = {String} URL to fetch source map from
231-
* @param defaultSourceRoot = Default source root for source map if undefined
230+
* @param {String} sourceMappingURL = URL to fetch source map from
231+
* @param {String} defaultSourceRoot = Default source root for source map if undefined
232232
* @returns {Promise} that resolves a SourceMapConsumer
233233
*/
234234
this._getSourceMapConsumer = function _getSourceMapConsumer(sourceMappingURL, defaultSourceRoot) {
@@ -326,12 +326,13 @@
326326
sourceMappingURL = defaultSourceRoot + sourceMappingURL;
327327
}
328328

329-
return this._getSourceMapConsumer(sourceMappingURL, defaultSourceRoot).then(function(sourceMapConsumer) {
330-
return _extractLocationInfoFromSourceMapSource(stackframe, sourceMapConsumer, sourceCache)
331-
.then(resolve)['catch'](function() {
332-
resolve(stackframe);
329+
return this._getSourceMapConsumer(sourceMappingURL, defaultSourceRoot)
330+
.then(function(sourceMapConsumer) {
331+
return _extractLocationInfoFromSourceMapSource(stackframe, sourceMapConsumer, sourceCache)
332+
.then(resolve)['catch'](function() {
333+
resolve(stackframe);
334+
});
333335
});
334-
});
335336
}.bind(this), reject)['catch'](reject);
336337
}.bind(this));
337338
};

0 commit comments

Comments
 (0)