Skip to content

Commit bccb23c

Browse files
committed
improved VT integrations
1 parent b5ea84d commit bccb23c

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Results/File.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,8 @@ -(NSString*)toJSON
380380

381381
//include VT?
382382
// append detection
383-
if(![NSProcessInfo.processInfo.arguments containsObject:@"-skipVT"])
383+
if( [NSProcessInfo.processInfo.arguments containsObject:@"-key"] &&
384+
![NSProcessInfo.processInfo.arguments containsObject:@"-skipVT"] )
384385
{
385386
//append VT detection
386387
json = [json stringByAppendingFormat:@", \"VT detection\": \"%lu/%lu\"", (unsigned long)[self.vtInfo[VT_RESULTS_POSITIVES] unsignedIntegerValue], (unsigned long)[self.vtInfo[VT_RESULTS_TOTAL] unsignedIntegerValue]];

main.m

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ int main(int argc, char *argv[])
7575
}
7676

7777
//need FDA
78-
if(!hasFDA()) {
78+
if(!hasFDA())
79+
{
7980

8081
//err msg
8182
fprintf(stderr,
@@ -122,9 +123,11 @@ int main(int argc, char *argv[])
122123
void version(void) {
123124
NSDictionary* info = NSBundle.mainBundle.infoDictionary;
124125
NSString* version = info[@"CFBundleVersion"];
125-
if (version) {
126+
if (version)
127+
{
126128
printf("KnockKnock Version: %s\n", version.UTF8String);
127-
} else {
129+
} else
130+
{
128131
printf("KnockKnock Version: unknown\n");
129132
}
130133

0 commit comments

Comments
 (0)