checkIntegrity(callback) {
		if (!this.__artifact) {
			callback(null);
		}
		else {
			checksum.file(this.path(), (err, hash) => {
				if (err)
					callback(new error.IntegrityMissingError());
				else if (hash != this.__artifact.sha1)
					callback(new error.IntegrityCorruptedError());
				else
					callback(null);
			});
		}
	}
/**
	 * Check the integrity of the library
	 *
	 * @param {Function} callback (IntegrityError)
	 */
Check the integrity of the library
@param {Function} callback (IntegrityError)
Check the integrity of the library @param { Function } callback ( IntegrityError )
checkIntegrity(callback) {
		if (!this.__artifact) {
			callback(null);
		}
		else {
			checksum.file(this.path(), (err, hash) => {
				if (err)
					callback(new error.IntegrityMissingError());
				else if (hash != this.__artifact.sha1)
					callback(new error.IntegrityCorruptedError());
				else
					callback(null);
			});
		}
	}
checkIntegrity ( callback ) { if ( ! this . __artifact ) { callback ( null ) ; } else { checksum . file ( this . path ( ) , ( err , hash ) => { if ( err ) callback ( new error . IntegrityMissingError ( ) ) ; else if ( hash != this . __artifact . sha1 ) callback ( new error . IntegrityCorruptedError ( ) ) ; else callback ( null ) ; } ) ; } }
Check the integrity of the library
 @param {Function} callback (IntegrityError)
Check the integrity of the library @param { Function } callback ( IntegrityError )