Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

sub-class type return #466

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions MKNetworkKit/MKNetworkHost.m
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,11 @@ -(instancetype) init {

- (instancetype) initWithHostName:(NSString*) hostName {

MKNetworkHost *engine = [[MKNetworkHost alloc] init];
engine.hostName = hostName;
return engine;
// MKNetworkHost *engine = [[MKNetworkHost alloc] init];
// engine.hostName = hostName;
self = [self init];
self.hostName = hostName;
return self;
}

-(void) enableCache {
Expand Down