Skip to content

Commit

Permalink
Fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthieu Napoli committed Aug 13, 2018
1 parent b7d4598 commit 3be6657
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion App/Containers/HomeScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class HomeScreen extends React.Component {
The weather temperature is: {this.props.temperature}
</Text>
<Text style={styles.instructions}>{this.props.errorMessage}</Text>
<Button onPress={this.props.fetchTemperature} title="Refresh"/>
<Button onPress={this.props.fetchTemperature} title="Refresh" />
</View>
)
}
Expand Down
4 changes: 2 additions & 2 deletions App/Service/WeatherService.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ function fetchTemperature() {
// Simulate an error 50% of the time just for testing purposes
if (Math.random() > 0.5) {
return new Promise(function(resolve, reject) {
resolve(null);
});
resolve(null)
})
}

const locationQuery = escape(
Expand Down

0 comments on commit 3be6657

Please sign in to comment.