Skip to content
This repository was archived by the owner on Jan 14, 2022. It is now read-only.

Commit e164286

Browse files
author
Lucas Rojas
committed
Clean comments in iconTools.js
1 parent 1cd07e5 commit e164286

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/iconTools.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ function getIcon(iconUrl, iconFilePath, callback) {
1717
return fileTools.mkdirp(iconFolder).then(function () {
1818
return download(iconUrl, iconFilePath).then(function (response) {
1919
if (response.statusCode === 200 && !response.contentType.match(/image/)) {
20-
// If not an image, return an error
2120
return Q.reject(new Error('Downloaded file \'' + iconUrl + '\' does not appear to be an image. The content type of the response was \'' + response.contentType + '\'.'));
2221
}
2322

@@ -29,7 +28,6 @@ function getIcon(iconUrl, iconFilePath, callback) {
2928

3029
function copyDefaultIcon(manifest, platformId, iconSize, source, targetPath, callback) {
3130

32-
// platform already contains an icon with this size - skip
3331
if (manifest.icons && manifest.icons[iconSize]) {
3432
return Q.resolve().nodeify(callback);
3533
}

0 commit comments

Comments
 (0)