Skip to content

Commit ca60889

Browse files
author
Igrom
committed
Move from _.detect to _.find
1 parent 0c5d88e commit ca60889

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tasks/services/route53.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ module.exports = function(grunt) {
122122
var recordsToCreate = _.select(records, function(record) {
123123
//check for any Route53 record matching this record's name (with period on the end)
124124
var checkForName = (record.name || record.Name) + '.';
125-
return !_.detect(data.ResourceRecordSets, function(route53RecordData) {
125+
return !_.find(data.ResourceRecordSets, function(route53RecordData) {
126126
return route53RecordData.Name === checkForName;
127127
});
128128
});

tasks/services/s3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ module.exports = function(grunt) {
197197
err.message = 'createBucket:S3.listBuckets: ' + err.message;
198198
return callback(err);
199199
}
200-
var existingBucket = _.detect(data.Buckets, function(bucket){
200+
var existingBucket = _.find(data.Buckets, function(bucket){
201201
return opts.bucket === bucket.Name;
202202
});
203203
if(existingBucket){

0 commit comments

Comments
 (0)