 // create cache
 if bootstrapCommand {
     let cacheFilePath = "\(workingDir)/\(carthageDirName)/\(cacheFileName)"
-    guard let cacheContents: String = cacheContents() else {
+    guard let contents = cacheContents() else {
         print("Failed to create cache content.")
         exit(0)
     }
 
     if NSFileManager.defaultManager().fileExistsAtPath("\(workingDir)/\(carthageDirName)") {
         do {
-            try cacheContents.writeToFile(cacheFilePath, atomically: false, encoding: NSUTF8StringEncoding)
+            try contents.writeToFile(cacheFilePath, atomically: false, encoding: NSUTF8StringEncoding)
         } catch _ {
             print("Failed to update CacheFile.")
             exit(0)
         }
     } else {
         // create Cachefile
-        if NSFileManager.defaultManager().createFileAtPath(cacheFilePath, contents: cacheContents.dataUsingEncoding(NSUTF8StringEncoding), attributes: nil) {
+        if NSFileManager.defaultManager().createFileAtPath(cacheFilePath, contents: contents.dataUsingEncoding(NSUTF8StringEncoding), attributes: nil) {
             print("Cachefile created successfully.")
         } else {
             print("Failed to create Cachefile.")

        return false
    }

    guard let newCacheContents: String = cacheContents() else {
        return false
    }
    

}

func contentsOfCartfileResolved() -> String? {
    guard let cartfileResolvedData = NSFileManager.defaultManager().contentsAtPath("\(workingDir)/\(resolvedFileName)") else {
        return nil
    }
    
