Skip to content

Commit

Permalink
Avoid a notice in config-edit
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Dec 18, 2015
1 parent de737ba commit b420e5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands/core/config.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,8 @@ function _drush_config_import_partial(FileStorage $source) {
* Edit command callback.
*/
function drush_config_edit($config_name = '') {
if (empty($config_name) && $file = drush_get_option('file', FALSE)) {
$file = drush_get_option('file', FALSE);
if (empty($config_name) && $file) {
// If not provided, assume config name from the given file.
$config_name = basename($file, '.yml');
}
Expand Down

0 comments on commit b420e5a

Please sign in to comment.