Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vti committed Apr 2, 2011
1 parent 8c72ca2 commit 7fba2b9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
6 changes: 4 additions & 2 deletions lib/Lamework.pm
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,10 @@ sub _detect_home {
my $self = shift;

my $home = $INC{$self->namespace . '.pm'};
$home = Cwd::realpath(
File::Spec->catfile(File::Basename::dirname($home), '..'));
if (defined $home) {
$home = Cwd::realpath(
File::Spec->catfile(File::Basename::dirname($home), '..'));
}

return $home;
}
Expand Down
2 changes: 0 additions & 2 deletions t/middleware/action_builder.t
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env perl

use strict;
use warnings;

Expand Down
2 changes: 0 additions & 2 deletions t/middleware/routes_dispatcher.t
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env perl

use strict;
use warnings;

Expand Down
2 changes: 0 additions & 2 deletions t/middleware/view_displayer.t
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env perl

use strict;
use warnings;

Expand Down

0 comments on commit 7fba2b9

Please sign in to comment.