mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
remove Collections.forEach loop
This commit is contained in:
1 parent
c5052f8e33
commit
725a1e8553
1 file changed
+3
-8
@@ -310,16 +310,11 @@ define(function (require, exports, module) {
|
||||
var key = file + "@" + offset;
|
||||
if (CollectionUtils.hasProperty(pendingTernRequests, key)) {
|
||||
var requests = pendingTernRequests[key],
|
||||
requestType = requests[type],
|
||||
anyProperties = false;
|
||||
requestType = requests[type];
|
||||
|
||||
delete pendingTernRequests[key][type];
|
||||
|
||||
CollectionUtils.forEach(requests, function (requestValue, requestKey) {
|
||||
anyProperties = true;
|
||||
});
|
||||
|
||||
if (!anyProperties) {
|
||||
|
||||
if (!Object.keys(requests).length) {
|
||||
delete pendingTernRequests[key];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user