Skip to content

Commit

Permalink
refactor to use exports
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Axel 'fREW' Schmidt committed Jun 18, 2012
1 parent f207c6f commit 64bbb79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/DU/App/Command/ingredient/edit.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use 5.14.1;
use warnings;

use DU::App -command;
use DU::Util;
use DU::Util qw(single_item edit_data);

sub abstract { 'edit ingredient' }

Expand All @@ -13,8 +13,8 @@ sub usage_desc { 'du ingredient edit $ingredient' }
sub execute {
my ($self, $opt, $args) = @_;

DU::Util::single_item(sub {
my $edit = DU::Util::edit_data({
single_item(sub {
my $edit = edit_data({
name => $_[0]->name,
description => $_[0]->description,
($_[0]->kind_of_id ? ( isa => $_[0]->direct_kind_of->name ) : ()),
Expand Down

0 comments on commit 64bbb79

Please sign in to comment.