Permalink
Browse files

refactor Fancy::Package::Handler#load_fancypack:else:

  • Loading branch information...
1 parent b8bc922 commit 515dd65aaeac711f51131555d107bb2940e8e15e @bakkdoor committed Nov 14, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/package/handler.fy
View
@@ -34,11 +34,11 @@ class Fancy Package {
If no @.fancypack file is found, raise an error.
"""
- Dir glob(installed_path ++ "/*.fancypack") first if_true: |fpackfile| {
- require: fpackfile
+ spec = nil
+ if: (Dir glob(installed_path ++ "/*.fancypack") first) then: |fpackfile| {
+ spec = File eval: fpackfile
}
-
- if: (Specification[@repository]) then: success_block else: else_block
+ if: spec then: success_block else: else_block
}
def installed_path {

0 comments on commit 515dd65

Please sign in to comment.