Skip to content

Commit f47f206

Browse files
committed
Merge pull request #164 from jawwad/remove-trailing-semicolons-from-stdlib
Remove trailing semicolons from files in stdlib
2 parents 98e613e + 8f6f5ab commit f47f206

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

Diff for: stdlib/public/SDK/AppKit/NSError.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ public extension NSCocoaError {
2828
}
2929

3030
public var isServiceError: Bool {
31-
return rawValue >= 66560 && rawValue <= 66817;
31+
return rawValue >= 66560 && rawValue <= 66817
3232
}
3333

3434
public var isSharingServiceError: Bool {
35-
return rawValue >= 67072 && rawValue <= 67327;
35+
return rawValue >= 67072 && rawValue <= 67327
3636
}
3737

3838
public var isTextReadWriteError: Bool {
39-
return rawValue >= 65792 && rawValue <= 66303;
39+
return rawValue >= 65792 && rawValue <= 66303
4040
}
4141
}

Diff for: stdlib/public/SDK/Dispatch/Dispatch.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public var DISPATCH_QUEUE_PRIORITY_BACKGROUND: dispatch_queue_priority_t {
6767
@warn_unused_result
6868
public func dispatch_get_global_queue(identifier: qos_class_t,
6969
_ flags: UInt) -> dispatch_queue_t {
70-
return dispatch_get_global_queue(Int(identifier.rawValue), flags);
70+
return dispatch_get_global_queue(Int(identifier.rawValue), flags)
7171
}
7272

7373
public var DISPATCH_QUEUE_CONCURRENT: dispatch_queue_attr_t {

Diff for: stdlib/public/SDK/Foundation/NSError.swift

+9-9
Original file line numberDiff line numberDiff line change
@@ -363,44 +363,44 @@ public extension NSCocoaError {
363363

364364
@available(OSX, introduced=10.11) @available(iOS, introduced=9.0)
365365
public var isCoderError: Bool {
366-
return rawValue >= 4864 && rawValue <= 4991;
366+
return rawValue >= 4864 && rawValue <= 4991
367367
}
368368

369369
@available(OSX, introduced=10.5) @available(iOS, introduced=2.0)
370370
public var isExecutableError: Bool {
371-
return rawValue >= 3584 && rawValue <= 3839;
371+
return rawValue >= 3584 && rawValue <= 3839
372372
}
373373

374374
public var isFileError: Bool {
375-
return rawValue >= 0 && rawValue <= 1023;
375+
return rawValue >= 0 && rawValue <= 1023
376376
}
377377

378378
public var isFormattingError: Bool {
379-
return rawValue >= 2048 && rawValue <= 2559;
379+
return rawValue >= 2048 && rawValue <= 2559
380380
}
381381

382382
@available(OSX, introduced=10.6) @available(iOS, introduced=4.0)
383383
public var isPropertyListError: Bool {
384-
return rawValue >= 3840 && rawValue <= 4095;
384+
return rawValue >= 3840 && rawValue <= 4095
385385
}
386386

387387
@available(OSX, introduced=10.9) @available(iOS, introduced=7.0)
388388
public var isUbiquitousFileError: Bool {
389-
return rawValue >= 4352 && rawValue <= 4607;
389+
return rawValue >= 4352 && rawValue <= 4607
390390
}
391391

392392
@available(OSX, introduced=10.10) @available(iOS, introduced=8.0)
393393
public var isUserActivityError: Bool {
394-
return rawValue >= 4608 && rawValue <= 4863;
394+
return rawValue >= 4608 && rawValue <= 4863
395395
}
396396

397397
public var isValidationError: Bool {
398-
return rawValue >= 1024 && rawValue <= 2047;
398+
return rawValue >= 1024 && rawValue <= 2047
399399
}
400400

401401
@available(OSX, introduced=10.8) @available(iOS, introduced=6.0)
402402
public var isXPCConnectionError: Bool {
403-
return rawValue >= 4096 && rawValue <= 4224;
403+
return rawValue >= 4096 && rawValue <= 4224
404404
}
405405
}
406406

Diff for: stdlib/public/SDK/XCTest/XCTest.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public func XCTAssertNotNil(@autoclosure expression: () -> Any?, _ message: Stri
153153

154154
public func XCTAssert( @autoclosure expression: () -> BooleanType, _ message: String = "", file: String = __FILE__, line: UInt = __LINE__) -> Void {
155155
// XCTAssert is just a cover for XCTAssertTrue.
156-
XCTAssertTrue(expression, message, file: file, line: line);
156+
XCTAssertTrue(expression, message, file: file, line: line)
157157
}
158158

159159
public func XCTAssertTrue(@autoclosure expression: () -> BooleanType, _ message: String = "", file: String = __FILE__, line: UInt = __LINE__) -> Void {

Diff for: stdlib/public/core/ContiguousArrayBuffer.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ internal func _copyCollectionToNativeArrayBuffer<
615615
(p++).initialize(source[i++])
616616
}
617617
_expectEnd(i, source)
618-
return result;
618+
return result
619619
}
620620

621621
/// A "builder" interface for initializing array buffers.

0 commit comments

Comments
 (0)