@@ -1264,7 +1264,6 @@ File.prototype.getSignedUrl = function(options, callback) {
1264
1264
* @param {object } metadata - The metadata you wish to update.
1265
1265
* @param {function= } callback - The callback function.
1266
1266
* @param {?error } callback.err - An error returned while making this request
1267
- * @param {object } callback.metadata - The File's metadata.
1268
1267
* @param {object } callback.apiResponse - The full API response.
1269
1268
*
1270
1269
* @example
@@ -1274,7 +1273,7 @@ File.prototype.getSignedUrl = function(options, callback) {
1274
1273
* my: 'custom',
1275
1274
* properties: 'go here'
1276
1275
* }
1277
- * }, function(err, metadata, apiResponse) {});
1276
+ * }, function(err, apiResponse) {});
1278
1277
*
1279
1278
* // Assuming current metadata = { hello: 'world', unsetMe: 'will do' }
1280
1279
* file.setMetadata({
@@ -1283,7 +1282,7 @@ File.prototype.getSignedUrl = function(options, callback) {
1283
1282
* unsetMe: null, // will be unset (deleted).
1284
1283
* hello: 'goodbye' // will be updated from 'hello' to 'goodbye'.
1285
1284
* }
1286
- * }, function(err, metadata, apiResponse) {
1285
+ * }, function(err, apiResponse) {
1287
1286
* // metadata should now be { abc: '123', hello: 'goodbye' }
1288
1287
* });
1289
1288
*/
@@ -1300,13 +1299,13 @@ File.prototype.setMetadata = function(metadata, callback) {
1300
1299
1301
1300
this . makeReq_ ( 'PATCH' , path , query , metadata , function ( err , resp ) {
1302
1301
if ( err ) {
1303
- callback ( err , null , resp ) ;
1302
+ callback ( err , resp ) ;
1304
1303
return ;
1305
1304
}
1306
1305
1307
1306
that . metadata = resp ;
1308
1307
1309
- callback ( null , that . metadata , resp ) ;
1308
+ callback ( null , resp ) ;
1310
1309
} ) ;
1311
1310
} ;
1312
1311
@@ -1351,13 +1350,13 @@ File.prototype.makePrivate = function(options, callback) {
1351
1350
1352
1351
this . makeReq_ ( 'PATCH' , path , query , metadata , function ( err , resp ) {
1353
1352
if ( err ) {
1354
- callback ( err ) ;
1353
+ callback ( err , resp ) ;
1355
1354
return ;
1356
1355
}
1357
1356
1358
1357
that . metadata = resp ;
1359
1358
1360
- callback ( null ) ;
1359
+ callback ( null , resp ) ;
1361
1360
} ) ;
1362
1361
} ;
1363
1362
0 commit comments